Friday, May 04, 2007

Abuse: Is it ruby? Is it Haskell? It's both!


=begin

> puts = return ()
> main = do let (.) = flip ($)

=end
eval <<HERE.gsub(/^>/, '')

> print([1,2,3].length)
> puts

HERE


Save to somefile.lhs

Run with ruby something.lhs
runhaskell something.lhs

No comments: