Advertisement
Guest User

Untitled

a guest
Sep 24th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. // Problem - how to differentiate?
  2.  
  3. foo :: a * b -> a * b
  4. foo x:
  5. match x
  6. | (a, b): (a, b * 3)
  7.  
  8. foo :: a -> b -> String
  9. foo (a, b): "Hello, world! - " + b.ToString()
  10.  
  11. foo (a, b)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement