On Tuesday, October 16, 2012 5:09:02 PM UTC-7, Andy Fingerhut wrote:
>
> Curtis: 
>
> You can do this if you want: 
>
> (def car first) 
> (def cdr rest) 
>
> but most people accustomed to Clojure would be much more familiar with 
> first and rest.  The Content of the Address and Data Registers haven't been 
> applicable for a long time, but it wasn't only the names that are changed 
> -- first and rest work on all kinds of data structures besides lists, and 
> return implementations of a sequence abstraction, not necessarily pointers 
> to cons cells. 
>
>

thank you - I expect some changes - but am coming from ruby where the 
'principle of least surprise'  has been kind to me.

 

> Andy 
>
> On Oct 16, 2012, at 3:40 PM, Curtis wrote: 
>
> > Hello - I was familar with lisp years ago and am very new to clojure. 
> > 
> > I am having a hard time understanding how to find 'car' and 'cdr'. 
> > 
> > The nice thing about these functions is they always seem to be a part of 
> lisp. 
> > 
> > I would like to use the little lisper to teach lisp to my co-workers so 
> that we can adopt Clojure. 
> > 
> > How can i import cdr or car? 
> > 
> > I know i can write these manually  or alias them to 'first' and 'rest' - 
> are they a part of the language? 
> > 
> > Cons appears to be around. 
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to