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

perl- a game of rock-paper-scissors

Name: Anonymous 2009-10-18 1:30

i am teaching myself perl. i want to have two scrips play r-p-s and a third to keep score. for now it will be on a single computer. then over a network. im using linux.

Name: not->>17 2009-10-18 8:19

>>18
&rest just means that the rest of the arguments that are passed to the function after that parameter are consed up into a list. The rule is similar to that for macros, but it's a bit more generic in that it allows arbitrary destructuring
http://www.lispworks.com/documentation/HyperSpec/Body/03_dac.htm
&body is exactly like rest, but is usually only seen in macros, the only difference is that it can be used to inform the implementation's pretty printer and (maybe) the editor of correct indentation to be used (usually 2 spaces) for body forms (usually a macro would place them in an implicit PROGN.

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