aboutsummaryrefslogtreecommitdiff
path: root/examples/functional.halk
blob: ba6121016e013d64f1202e1df92d0c960e8deca7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
[the Y combinator, implemented in HALK. Note the
use of '=>' instead of '->', to denote a function
whom's arguments are immutable.]

let.Y => {
   λ.f => {
      λ.x => f.x.x;
   }.λ.x => f.x.x;
}