Created
September 18, 2015 07:47
-
-
Save certainty/f0e33699d5160c87a968 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def cons(a,b) | |
->(accessor) { accessor.(a,b) } | |
end | |
def car(cell) | |
cell.(->(a,_) { a }) | |
end | |
def cdr(cell) | |
cell.(->(_,b) { b }) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment