[ prog / sol / mona ]

prog


International Obfuscated Scheme Contest

1 2022-05-09 15:39

We hereby invite you to participate in the first International Obfuscated Scheme Contest. Only standard compliant RnRS Scheme is allowed.

2 2022-05-10 08:31
(define Y
  (lambda (f)
    ((lambda (g) (g g))
     (lambda (g)
       (f (lambda x (apply (g g) x)))))))
3 2022-05-10 10:06

Can you explain what is happening in the above code ?

4 2022-05-10 11:11

>>3
It is a Y combinator from the lambda calculus.

5 2022-05-10 11:25

Calculus? But tthey told me you don't actually need higher math for programming!

6 2022-05-10 12:32

>>5
Depends on what you mean by "higher math". You do need math to understand data structures and algorithms when reading a textbook like CLRS.

7 2022-05-12 15:03

>>5
lambda calculus =/= infinitesimal calculus
but knowing the latter might be useful in solving some domain-specific problems

8


VIP:

do not edit these