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 >
> 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
On Nov 6, 2012, at 11:48 , Sean Corfield wrote:
> On Tue, Nov 6, 2012 at 9:34 AM, JvJ 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 qu
On Tue, Nov 6, 2012 at 9:34 AM, JvJ 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 of them together..
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 UTC
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
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 h
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
>
>
(cons 1 nil)
On Wed, Oct 17, 2012 at 8:16 PM, Curtis 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 `r
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 l
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
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,
> B
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
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.
Ther
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
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 h
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 n
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 a
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 --
f
`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 wrote:
> Hello - I was familar with lisp years ago and am very new to
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 w
20 matches
Mail list logo