Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Re: How can I use the the return value of split without assigning?

by hding (Chaplain)
on Jul 27, 2001 at 05:59 UTC ( [id://100207]=note: print w/replies, xml ) Need Help??


in reply to Re: How can I use the the return value of split without assigning?
in thread How can I use the the return value of split without assigning?

You can get the "car" (couldn't they have thought of a better name?)... Did I get car and cdr mixed up again?I can't imagine how I could be so careless.

In Common Lisp, you may freely use 'first' instead of 'car' and 'rest' instead of 'cdr' - they're completely identical. I tend to use first/rest when I'm thinking of something as a list, and car/cdr when I'm thinking of it as a cons cell, but that's hardly a hard and fast rule, even for me.

  • Comment on Re: Re: How can I use the the return value of split without assigning?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://100207]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (2)
As of 2025-07-11 02:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.