On Mar 31, 7:28 am, Laurent PETIT wrote:
> If I remember correctly (I wasn't able to find the thread where this same
> subject was explained), one must make a difference between functions
> intended to work on data structures, and functions intended to work on
> sequences.
>
Here's the thread:
The let-> macro looks very useful. Thank-you!
--~--~-~--~~~---~--~~
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
To unsubscribe from this group, send email t
I think clojure is a little torn between functional thinking and oo
thinking - java vs haskell (i must admit that I am not originally a
lisper, more of a java and functional guy)
Functional / haskell style is what you see in map. that collection is
at the end. The preceding arguments are like pa
> Would this not allow mixing map into a threaded expression:
You might also be interested in this thread:
http://groups.google.com/group/clojure/browse_thread/thread/66ff0b89229be894
Where various people created a let-> (or pipe) macro for such a
purpose.
--~--~-~--~~~
Hi Nathan,
On 31 Mrz., 09:40, Nathan Sorenson wrote:
> First of all, I would like to thank Rich and this community for
> producing such a pleasurable language, and for putting up with with
> all the unpleasant nit-picking of new users. That being said...
>
> I am curious as to why the function p
Hi Nathan,
There is actually a simple answer to your question. map can take a
fuction of multiple parameters along with multiple collections. i.e.
(defn f [x y] (+ x y))
(map f [1 2] [3 4])
=> (4 6)
(Warning I did this computation in the Clojure instance in my head, so
some details may be sligh
If I remember correctly (I wasn't able to find the thread where this same
subject was explained), one must make a difference between functions
intended to work on data structures, and functions intended to work on
sequences.
Data structures are not volatile as sequences are, and those functions th
First of all, I would like to thank Rich and this community for
producing such a pleasurable language, and for putting up with with
all the unpleasant nit-picking of new users. That being said...
I am curious as to why the function parameter is specified before the
collection parameter in map/red