Die Suche ergab 7 Treffer

von saifposinc
24. Feb 2020 22:37
Forum: Konzepte der Programmiersprachen
Thema: Looking for Someone to Prepare for EXAM together
Antworten: 0
Zugriffe: 77

Looking for Someone to Prepare for EXAM together

Hi,
I'm looking for someone to study COPL together.
If interested, pls respond.
Thanks.
von saifposinc
20. Jan 2019 12:48
Forum: Konzepte der Programmiersprachen
Thema: Calculating WAE Expressions
Antworten: 1
Zugriffe: 178

Calculating WAE Expressions

Hello, I didn't understand the topic: "Calculating WAE Expressions" in V02.pdf > slide 21. Can someone please explain these things simply: How come we get these lines?: ... case Let(boundId, namedExpr, boundExpr) => { interp(subst(boundExpr, boundId, Num(interp(namedExpr)))) } case Id(name) => sys.e...
von saifposinc
15. Jan 2019 00:24
Forum: Konzepte der Programmiersprachen
Thema: Exercise-01 Solution
Antworten: 3
Zugriffe: 190

Re: Exercise-01 Solution

Hi, Related to your answer, I can rewrite it as: def sum(l: List[Int]): Int = l match { case Nil => 0 case x => x.head + sum(x.tail) //case x :: xs => x + sum(xs) } & works fine But how '::' works here? I only know '::' prepends element in the List. Would you break down a bit more how it is working ...
von saifposinc
14. Jan 2019 23:52
Forum: Konzepte der Programmiersprachen
Thema: Exercise-01 Solution
Antworten: 3
Zugriffe: 190

Exercise-01 Solution

Hello, I'm not understanding this part of the code where it was asked to write a recursive function 'sum' that sums up the elements of a list of numbers: def sum(l: List[Int]): Int = l match { case Nil => 0 case x :: xs => x + sum(xs) } Given, I know how Scala List & match-case work, also know '::' ...
von saifposinc
10. Jan 2019 22:04
Forum: Konzepte der Programmiersprachen
Thema: What does this mean: 'x
Antworten: 1
Zugriffe: 244

What does this mean: 'x

val someTerm: Lambda = Lambda(
parameter = Identifier('x),
body = Identifier('x)
)

Above is a snippet of code from the 'Scala Introductory Class'. I'm not understanding what 'x means.
Can anyone please explain a bit.
Thanks.
von saifposinc
11. Dez 2018 11:39
Forum: Konzepte der Programmiersprachen
Thema: Can't Access COPL Site
Antworten: 2
Zugriffe: 237

Re: Can't Access COPL Site

Solved. Thanks.
von saifposinc
10. Dez 2018 19:36
Forum: Konzepte der Programmiersprachen
Thema: Can't Access COPL Site
Antworten: 2
Zugriffe: 237

Can't Access COPL Site

I can't sign-in with my credentials. The site is not taking/accepting my ID. My TU-ID is functional and have no problem accessing other sites (TUCaN, moodle.informatik etc.), even I did sign-in the repository site last week without any problem. But now simply it's not accepting my ID. This is seriou...

Zur erweiterten Suche