lesnitsky / 0110011001110000

1 stars 1 forks source link

Tuple functions #8

Open DaQuirm opened 4 years ago

DaQuirm commented 4 years ago

Given the following encoding for tuples:

tuple a b f = f a b

write accessor functions for the first and the second components of the tuple:

fst t should equal a snd t should equal b

where

t = tuple a b