I was a little surprised that fold was not a standard function but I
didn't run my mouth off about it - just typed "reduce" into the repl
and found out it was called that instead.
On Jun 17, 5:45 pm, Wrexsoul wrote:
> On Jun 17, 2:47 pm, Kyle Schaffrick wrote:
>
> > As a friendly suggestion, I
Wrexsoul, please mate, these are good guys. Remember the beauty and
tradition of the language you're learning. It's a lisp and gives you
the power to effortlessly create almost any abstraction you can
imagine. Not being convinced of the beauty of this, open you mind a
bit and humble yourself some
On Jun 17, 5:45 pm, Wrexsoul wrote:
> On Jun 17, 2:47 pm, Kyle Schaffrick wrote:
>
> > As a friendly suggestion, I'd like to offer that perhaps the derision is
> > caused not by the fact that you had the initiative to implement it
> > yourself, but rather by such phrasing as:
>
> > > I'm shock
On Jun 17, 4:00 pm, Rich Hickey wrote:
> On Jun 17, 1:22 am, Wrexsoul wrote:
> > The docs definitely have problems if this can be missed despite a very
> > thorough search. The only more-thorough search would have been to
> > actually read the docs in their entirety, rather than to search them!
On Jun 17, 3:52 pm, Daniel Lyons wrote:
> On Jun 17, 2009, at 1:43 PM, Rich Hickey wrote:
>
> > Please refrain from communicating this way on this group. If a post
> > annoys you please ignore it. It is much more important that we
> > maintain civility and respectfulness here.
>
> My apologies to
On Jun 17, 2:47 pm, Kyle Schaffrick wrote:
> As a friendly suggestion, I'd like to offer that perhaps the derision is
> caused not by the fact that you had the initiative to implement it
> yourself, but rather by such phrasing as:
>
> > I'm shocked that [reduce/accum/foldr] is missing from clojur
On Jun 17, 2:25 pm, Cosmin Stejerean wrote:
> On Wed, Jun 17, 2009 at 12:51 PM, Wrexsoul wrote:
>
> > > Even though clojure.contrib hasn't been released as 1.0 or anything
> > > official-sounding, I reckon it still beats the heck out of me
> > > reinventing the wheel, especially with the calibre
On Jun 17, 1:22 am, Wrexsoul wrote:
> On Jun 17, 12:44 am, Parth wrote:
>
>
>
>
>
> > On Jun 17, 9:34 am, Wrexsoul wrote:
> > > I'm shocked that this is missing from clojure.core:
>
> > > (defn accum [f init coll]
> > > (loop [x init c coll]
> > > (if (empty? c)
> > > x
> > >
On Jun 17, 2009, at 1:43 PM, Rich Hickey wrote:
> Please refrain from communicating this way on this group. If a post
> annoys you please ignore it. It is much more important that we
> maintain civility and respectfulness here.
My apologies to Wrexsoul. I was out of line. Civility and mutual
On Jun 17, 12:44 am, Daniel Lyons wrote:
> On Jun 16, 2009, at 10:34 PM, Wrexsoul wrote:
>
>
>
>
>
>
>
> > I'm shocked that this is missing from clojure.core:
>
> > (defn accum [f init coll]
> > (loop [x init c coll]
> > (if (empty? c)
> > x
> > (recur (f x (first c)) (rest c)
On Wed, 17 Jun 2009 10:51:48 -0700 (PDT),
Wrexsoul wrote:
> On Jun 17, 3:20 am, kkw wrote:
>> I only knew about map, apply, and reduce from studying haskell in uni.
>> I've not heard of 'reduce' referred to as 'accum', but then again when
>> I wanted to determine the number of elements in a seq,
On Wed, Jun 17, 2009 at 12:51 PM, Wrexsoul wrote:
>
> > Even though clojure.contrib hasn't been released as 1.0 or anything
> > official-sounding, I reckon it still beats the heck out of me
> > reinventing the wheel, especially with the calibre of folks who've
> > contributed to clojure.contrib.
On Jun 17, 10:51 am, Mark Volkmann wrote:
> On Wed, Jun 17, 2009 at 9:41 AM, CuppoJava wrote:
> > Finding the right function in the doc admittedly takes a little
> > practice. I've learned gradually, that Clojure pretty much has all its
> > bases covered though. You just need to find the function
On Jun 17, 3:20 am, kkw wrote:
> I only knew about map, apply, and reduce from studying haskell in uni.
> I've not heard of 'reduce' referred to as 'accum', but then again when
> I wanted to determine the number of elements in a seq, I kept
> searching for 'length' and 'size' but didn't think of
On Jun 17, 2:05 am, Parth wrote:
> On Jun 17, 10:24 am, Wrexsoul wrote:
>
> > On Jun 17, 12:44 am, Daniel Lyons wrote:
>
> > > (use 'clojure.contrib.seq-utils)
>
> > Don't have that library. Still hasn't been released yet, last I
> > checked.
>
> I am not sure if a pre-built clojure-contrib.jar
On Jun 17, 3:10 am, Mark Derricutt wrote:
> There's prebuilt SNAPSHOT releases available in Howard's Tapestry repository
> - been using them happily from my maven based clojure app for awhile.
> Thou an official 1.0 stamped release in maven central (along with
> clojure-lang) would be most welcom
> Finding the right function in the doc admittedly takes a little
> practice.
I often end up reading through /api to find what I want, but "Clojure
Categorized" might be a much faster way to do it:
http://java.ociweb.com/mark/clojure/ClojureCategorized.html
I don't know if it's kept up-to-dat
On Wed, Jun 17, 2009 at 9:41 AM, CuppoJava wrote:
>
> Finding the right function in the doc admittedly takes a little
> practice. I've learned gradually, that Clojure pretty much has all its
> bases covered though. You just need to find the function. And this
> forum is filled with very helpful an
Finding the right function in the doc admittedly takes a little
practice. I've learned gradually, that Clojure pretty much has all its
bases covered though. You just need to find the function. And this
forum is filled with very helpful and friendly people, who will tell
you the function name, if y
I only knew about map, apply, and reduce from studying haskell in uni.
I've not heard of 'reduce' referred to as 'accum', but then again when
I wanted to determine the number of elements in a seq, I kept
searching for 'length' and 'size' but didn't think of 'count', so it
can be a bit tricky eh? I
There's prebuilt SNAPSHOT releases available in Howard's Tapestry repository
- been using them happily from my maven based clojure app for awhile.
Thou an official 1.0 stamped release in maven central (along with
clojure-lang) would be most welcome.
--
On Wed, Jun 17, 2009 at 6:05 PM, Parth wro
Wrexsoul,
Your right, I was out of line. I'm sorry. I should go through the
effort to explain myself rather than resort to personal attacks.
Sean
On Jun 17, 1:25 am, Wrexsoul wrote:
> On Jun 17, 12:57 am, Sean Devlin wrote:
>
> > Daniel, don't feed the WrexTroll
>
> Personal attacks are unwe
On Jun 17, 10:24 am, Wrexsoul wrote:
> On Jun 17, 12:44 am, Daniel Lyons wrote:
>
>
> > (use 'clojure.contrib.seq-utils)
>
> Don't have that library. Still hasn't been released yet, last I
> checked.
I am not sure if a pre-built clojure-contrib.jar is available.
You could consider building
On Jun 17, 12:57 am, Sean Devlin wrote:
> Daniel, don't feed the WrexTroll
Personal attacks are unwelcome here.
> > Indeed! It's called reduce:
>
> >http://clojure.org/api#toc476
>
> > I'm shocked you haven't noticed it in the API documentation.
I SPECIFICALLY did a search of the entire api do
On Jun 17, 12:44 am, Daniel Lyons wrote:
> Indeed! It's called reduce:
>
> http://clojure.org/api#toc476
>
> I'm shocked you haven't noticed it in the API documentation.
I SPECIFICALLY did a search of the entire api docs to see if there was
anything like "accum" already in there. I examined ever
On Jun 17, 12:44 am, Parth wrote:
> On Jun 17, 9:34 am, Wrexsoul wrote:
> > I'm shocked that this is missing from clojure.core:
>
> > (defn accum [f init coll]
> > (loop [x init c coll]
> > (if (empty? c)
> > x
> > (recur (f x (first c)) (rest c)
>
> > user=> (accum + 0 [1
Daniel, don't feed the WrexTroll
On Jun 17, 12:44 am, Daniel Lyons wrote:
> On Jun 16, 2009, at 10:34 PM, Wrexsoul wrote:
>
>
>
>
>
>
>
> > I'm shocked that this is missing from clojure.core:
>
> > (defn accum [f init coll]
> > (loop [x init c coll]
> > (if (empty? c)
> > x
> > (re
On Jun 16, 2009, at 10:34 PM, Wrexsoul wrote:
>
> I'm shocked that this is missing from clojure.core:
>
> (defn accum [f init coll]
> (loop [x init c coll]
>(if (empty? c)
> x
> (recur (f x (first c)) (rest c)
>
> user=> (accum + 0 [1 2 3])
> 6
> user=> (accum + 0 [1 2 3 4 5])
On Jun 17, 9:34 am, Wrexsoul wrote:
> I'm shocked that this is missing from clojure.core:
>
> (defn accum [f init coll]
> (loop [x init c coll]
> (if (empty? c)
> x
> (recur (f x (first c)) (rest c)
>
> user=> (accum + 0 [1 2 3])
> 6
> user=> (accum + 0 [1 2 3 4 5])
> 15
>
29 matches
Mail list logo