Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Rich Hickey is mad!

Name: Anonymous 2013-06-20 20:39

Name: Anonymous 2013-06-22 5:32

>>36
You want a function with type a ∨ (a,b) → a or (a → a) ∨ ((a,b) → a) but Haskell doesn't let you do that, so you have to wrap it in a data constructor.
data Union a b = Value a | Pair a b

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List