Cuteness

From HaskellWiki
Jump to: navigation, search

It might be fun to have a central repository of "cute" haskell code.

For example, this is a lambdabot command from the #haskell IRC channel:

heatsink: @pl (\y -> you y off)

When you evaluate it, you get: flip you off.

Another example is the Total Recall Combinator, whose name is obvious if you've seen the eponymous movie:

(.:) = (.)(.)(.)

No doubt some enterprising soul could scan through the Haskell Weekly News quotes section and find a lot more of this stuff.