Long-Term Carpark
Message from 2022
This post is pretty old! Opinions and technical information in it are almost certainly oudated. Commands and configurations will probably not work. Consider the age of the content before putting any of it into practice.
In GCL:
>>(cadr '(1 2 3))
2
Old and Busted:
irb(main):001:0> require 'carpark.rb'
=> true
irb(main):002:0> [1,2,3].cadr
NoMethodError: undefined method `cdr' for 1:Fixnum
from ./carpark.rb:17:in `send'
from ./carpark.rb:17:in `method_missing'
from (irb):2
irb(main):003:0> [1,2,3].cdar
=> 2
New and Working:
irb(main):001:0> require 'carpark.rb'
=> true
irb(main):002:0> [1,2,3].cadr
=> 2
Delivered straight to your door!
svn co http://brycekerley.net/svn/carpark/ carpark
Gems forthcoming (maybe this weekend).