about summary refs log tree commit diff
path: root/tests/examples/pairs-fst.lam
blob: 5ee215ae0998da6349a13055dc9d08f184866814 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
(\ pair fst snd .

    fst (pair a b)

    -- Should reduce to a
)

-- pair
(\ x y f . f x y)

-- fst
(\ p . p (\ x y . x))

-- snd
(\ p . p (\ x y . y))