Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import Prelude hiding (curry, uncurry)
- -- f :: ((a, b) -> c)
- -- x :: a
- -- y :: b
- curry :: ((a, b) -> c) -> (a -> b -> c)
- curry f x y = f (x, y)
- -- f :: a -> b -> c
- -- (x, y) :: (a, b)
- uncurry :: (a -> b -> c) -> ((a, b) -> c)
- uncurry f (x, y) = f x y
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement