Die Suche ergab 4 Treffer

von vikumar
3. Mär 2017 21:47
Forum: Archiv
Thema: Slide V08_page 33_Continuations example
Antworten: 3
Zugriffe: 651

Re: Slide V08_page 33_Continuations example

Thanks for the response. Could you explain your reasoning a bit.
von vikumar
3. Mär 2017 12:26
Forum: Archiv
Thema: Slide V08_page 33_Continuations example
Antworten: 3
Zugriffe: 651

Slide V08_page 33_Continuations example

In the code given in the slide:

Code: Alles auswählen

println(reset {shift { k: (Int=>Int) => k(k(k(7))); "done" } + 1})
How would the instruction "done" affect the answer of the computation? I could reason the answers of other questions in the slide, but having difficulty with this one. Any help would be appreciated.
von vikumar
13. Dez 2016 23:11
Forum: Archiv
Thema: Assignment 6 TryDeref
Antworten: 2
Zugriffe: 289

Re: Assignment 6 TryDeref

Thanks for the clarification. It helps me to explore more. :D
von vikumar
13. Dez 2016 22:35
Forum: Archiv
Thema: Assignment 6 TryDeref
Antworten: 2
Zugriffe: 289

Assignment 6 TryDeref

What does the TryDeref(e, default) mean in this question? Why does a 'default' come into picture? Could you please explain a bit here. Things are not much evident from the test cases too.

Zur erweiterten Suche