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

Haskell vs. CL: The Lesser of Two Evils

Name: Anonymous 2011-05-18 12:36

Go.

Name: Anonymous 2011-05-18 14:47

>>2
if' True  x _ = x
if' False _ y = y


Usage:
*Main> if' (1 == 1) "yes" "no"
"yes"
*Main> if' (1 == 2) "yes" "no"
"no"


And it was a stupid example. Congratulations, you can write if in CL even though it's already built in.

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