Re:The Lisp Curse (2011)
by AnimalMuppet on Thursday February 25, 2016 @01:14PM
(#11176388)
Well, if you use "first" and "rest", then (caadr l) could become (firrest l) or something like that...
[ Parent
| on HN ]
Re:The Lisp Curse (2011)
by bhrgunatha on Thursday February 25, 2016 @09:38PM
(#11179498)
I like Racket's second, third, fourth,... etc. [1]
I don't think there's an equivalent to cddadr for example, but at that level of deconstruction you're better off abstracting the data structure (maybe a struct [2]) or using some other mechanism like match [3]
[1] http://docs.racket-lang.org/reference/pairs.html?q=second#%2...
[2] http://docs.racket-lang.org/reference/define-struct.html?q=s...
[3] http://docs.racket-lang.org/reference/match.html?q=match#%28...