Re: Cdr car

2012-11-07 Thread JvJ
That's good to know! On Tuesday, 6 November 2012 12:48:27 UTC-5, Sean Corfield wrote: On Tue, Nov 6, 2012 at 9:34 AM, JvJ kfjwh...@gmail.com javascript: wrote: There's quite a number of functions like caar, cadr, cadadr, etc. It's lengthy to do that in clojure with just first and rest.

Re: Cdr car

2012-11-06 Thread JvJ
After seeing this thread I looked into car and cdr, and there's one thing I really liked about them: the various compositions. There's quite a number of functions like caar, cadr, cadadr, etc. It's lengthy to do that in clojure with just first and rest. On Tuesday, 16 October 2012 18:40:24

Re: Cdr car

2012-11-06 Thread Sean Corfield
On Tue, Nov 6, 2012 at 9:34 AM, JvJ kfjwhee...@gmail.com wrote: There's quite a number of functions like caar, cadr, cadadr, etc. It's lengthy to do that in clojure with just first and rest. Clojure does have ffirst, fnext, nfirst, nnext tho' - and I'd question why you'd need to string several

Re: Cdr car

2012-11-06 Thread Michael Gardner
On Nov 6, 2012, at 11:48 , Sean Corfield seancorfi...@gmail.com wrote: On Tue, Nov 6, 2012 at 9:34 AM, JvJ kfjwhee...@gmail.com wrote: There's quite a number of functions like caar, cadr, cadadr, etc. It's lengthy to do that in clojure with just first and rest. Clojure does have ffirst,

Re: Cdr car

2012-10-29 Thread Andy Fingerhut
I typed up the transcript, and as a result of this message decided to republish the transcript in a place that isn't gone yet: http://jafingerhut.github.com/clojure-info/clojure-for-lispers-transcript.txt If anyone has permission to update the link to the transcript beneath part 1 of the video

Re: Cdr car

2012-10-20 Thread Curtis
Thank you everyone !! I really appreciate you assistance and am so glad to hear about the diversity of backgrounds.! On Tuesday, October 16, 2012 3:40:24 PM UTC-7, Curtis wrote: Hello - I was familar with lisp years ago and am very new to clojure. I am having a hard time understanding how

Re: Cdr car

2012-10-20 Thread Curtis
This is golden! thank you so much! On Wednesday, October 17, 2012 12:10:15 PM UTC-7, Jeff Heon wrote: If I may suggest the following presentation: http://blip.tv/clojure/clojure-for-lisp-programmers-part-1-1319721 http://blip.tv/clojure/clojure-for-lisp-programmers-part-2-1319826 There

Re: Cdr car

2012-10-18 Thread AtKaaZ
(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

Re: Cdr car

2012-10-17 Thread Curtis
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

Re: Cdr car

2012-10-17 Thread Curtis
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

Re: Cdr car

2012-10-17 Thread Curtis
On Tuesday, October 16, 2012 5:40:54 PM UTC-7, kovasb wrote: A number of classic lisp books have been translated to clojure, for instance http://juliangamble.com/blog/2012/07/20/the-little-schemer-in-clojure/ Thank you for the link! Personally I felt relieved when I saw that

Re: Cdr car

2012-10-17 Thread Andy Fingerhut
This works just fine, and as you would expect from Common Lisp: user= (cons 1 '()) (1) Clojure does not have improper lists as Scheme and Common Lisp allow. You can't have a cons pair of arbitrary pairs of things, but you can create vectors of 2 arbitrary things if you want such a pair.

Re: Cdr car

2012-10-17 Thread Jeff Heon
If I may suggest the following presentation: http://blip.tv/clojure/clojure-for-lisp-programmers-part-1-1319721 http://blip.tv/clojure/clojure-for-lisp-programmers-part-2-1319826 There used to a transcript available on the newsgroup until Google decided to remove all files from newsgroup 8) On

Re: Cdr car

2012-10-17 Thread Curtis
Thank you so much! 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

Re: Cdr car

2012-10-17 Thread Matthew O. Smith
I came to Clojure from a similar background and posted my thoughts of car, cdr, and cons here http://software-ninja-ninja.blogspot.com/2011/08/clojure-patterns-cons-car-and-cdr.html On Wednesday, October 17, 2012 1:10:15 PM UTC-6, Jeff Heon wrote: If I may suggest the following presentation:

Re: Cdr car

2012-10-17 Thread Softaddicts
My first lisp was UCI lisp in the 80s. There were not many data structures available aside from linked lists and trees. Of course a computer as powerful as today's pocket calculators would have required an entire building if built with the available technology in these years. I used common lisp

Cdr car

2012-10-16 Thread Curtis
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

Re: Cdr car

2012-10-16 Thread Baishampayan Ghose
`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

Re: Cdr car

2012-10-16 Thread Andy Fingerhut
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 --

Re: Cdr car

2012-10-16 Thread kovas boguta
A number of classic lisp books have been translated to clojure, for instance http://juliangamble.com/blog/2012/07/20/the-little-schemer-in-clojure/ Personally I felt relieved when I saw that clojure had abandoned the anachronistic car/cdr stuff; the sequence abstraction is a lot nicer. There