Source

spark / parspark / t / 04-lambda.t

The default branch has multiple heads

1
2
3
4
5
6
7
8
9
(say '1..4')
(let ((ok (lambda (msg) (say 'ok ' msg)))
      (sum (lambda (a b) (+ a b)))
      (double (lambda (a) (* a 2))))
    (ok 1)
    (ok (double 1))
    (ok (sum 1 (double 1)))
    (ok (double (sum 1 1)))
)