(cons 1 nil)

On Wed, Oct 17, 2012 at 8:16 PM, Curtis <cur...@ram9.cc> wrote:

> Cons seems to be strange
>
> How do i use Cons with an atom to make a list?
>
> (cons 1 1)
>
>
> On Tuesday, October 16, 2012 5:08:26 PM UTC-7, Baishampayan Ghose wrote:
>
>> `car` is called `first` here and `cdr` could mean either `rest` or
>> `next` depending on what you mean/need.
>>
>> And oh, `cons` is not exactly the same one from Common Lisp, etc.
>>
>> Regards,
>> BG
>>
>> On Tue, Oct 16, 2012 at 3:40 PM, Curtis <cur...@ram9.cc> 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 clo...@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+u...@**googlegroups.com
>> > For more options, visit this group at
>> > http://groups.google.com/**group/clojure?hl=en<http://groups.google.com/group/clojure?hl=en>
>>
>>
>>
>> --
>> Baishampayan Ghose
>> b.ghose at gmail.com
>>
>  --
> 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
>



-- 
I may be wrong or incomplete.
Please express any corrections / additions,
they are encouraged and appreciated.
At least one entity is bound to be transformed if you do ;)

-- 
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