Skip to content

Instantly share code, notes, and snippets.

@certainty
Created February 23, 2014 14:54
Show Gist options
  • Save certainty/9172432 to your computer and use it in GitHub Desktop.
Save certainty/9172432 to your computer and use it in GitHub Desktop.
cons = ->(x,y){ ->(a){ a.(x,y) } }
car = ->(c){ c.(->(x,_){ x }) }
cdr = ->(c){ c.(->(_,y){ y }) }
pair = cons.(1,2)
puts car.(pair)
puts cdr.(pair)
@tamouse
Copy link

tamouse commented Feb 23, 2014

rubylisp!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment