Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 4th, 2012  |  syntax: None  |  size: 0.42 KB  |  hits: 8  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. type signature of uncurry function
  2. uncurry f=(a,b)->f a b
  3.        
  4. >add3 5
  5. 8
  6.        
  7. add :: (Num t) => (t, t) -> t
  8. add (x, y) = x + y
  9.        
  10. uncurry :: (a -> b -> c) -> ((a, b) -> c)
  11. uncurry f=(a,b)->f a b
  12.        
  13. uncurry :: (a -> b -> c) -> (a, b) -> c
  14. uncurry f = (a, b) -> (f a) b
  15.        
  16. uncurry' :: (a -> b -> c) -> ((a, b) -> c)
  17. uncurry' f (a,b) = f a b
  18.        
  19. f x y z = x + y + z
  20.        
  21. f = x y z -> x + y + z
  22.        
  23. f x = y -> (z -> x + y + z)