Meta-Meta

let meta x = meta (meta x)

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
Posted by Logan Capaldo at 11:00 PM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

Blog Archive

  • ►  2014 (1)
    • ►  August (1)
  • ►  2012 (4)
    • ►  December (1)
    • ►  March (2)
    • ►  February (1)
  • ►  2011 (7)
    • ►  November (1)
    • ►  June (2)
    • ►  May (1)
    • ►  March (1)
    • ►  February (1)
    • ►  January (1)
  • ►  2010 (2)
    • ►  November (1)
    • ►  July (1)
  • ►  2008 (2)
    • ►  April (2)
  • ▼  2007 (4)
    • ►  October (1)
    • ►  June (2)
    • ▼  May (1)
      • Abuse: Is it ruby? Is it Haskell? It's both!
  • ►  2006 (12)
    • ►  December (4)
    • ►  November (1)
    • ►  October (1)
    • ►  September (1)
    • ►  June (2)
    • ►  May (1)
    • ►  April (2)
  • ►  2005 (8)
    • ►  August (8)

About Me

Logan Capaldo
This wasn't funny.
View my complete profile
Awesome Inc. theme. Powered by Blogger.