Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

(second), (third), etc. in common lisp

Name: shitting lollybox 2012-10-15 5:45

so if I want to express the third element of some list I can write
(third '(a b c))
This works all the way up to (tenth).

WTF? Why would they include built in functions like this? Seems insane coming from C and Java

Name: Anonymous 2012-10-15 23:46

>>18,23
If the target is any modern machine, the best way to do it is obviously to evaluate them both at the same time.
Especially for stack machines, where crazy shit like 144-core CPUs1 is common.

[sub]________
1. http://www.greenarraychips.com/home/documents/greg/PB001-100503-GA144-1-10.pdf

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List