I also uploaded the patch to this group's files:
http://groups.google.com/group/clojure/web/containsAll.patch
On Dec 24, 7:05 pm, Andrew Baine wrote:
> Index: src/jvm/clojure/lang/PersistentQueue.java
> ===
> --- src/jvm/clojure/lang
Index: src/jvm/clojure/lang/PersistentQueue.java
===
--- src/jvm/clojure/lang/PersistentQueue.java (revision 1185)
+++ src/jvm/clojure/lang/PersistentQueue.java (working copy)
@@ -181,10 +181,10 @@
public boolean containsAll(Coll
This is what I'm seeing in Clojure rev 1185:
user=> '+x
+x
user=> '+5x
java.lang.NumberFormatException: Invalid number: +5x
Cheers
On 12/25/08, Stephen C. Gilardi wrote:
>
> Numeric characters are the digits 0 through 9. Are you seeing some
> behavior that suggests otherwise?
>
> Symbols can b
On Wednesday 24 December 2008 16:23, Abhishek Reddy wrote:
> Hi,
>
> http://clojure.org/reader says symbols "begin with a non-numeric
> character and can contain alphanumeric characters and *, + ..."
>
> What are the numeric characters? It seems to include '+' and '-' as
> well as digits -- is th
Numeric characters are the digits 0 through 9. Are you seeing some
behavior that suggests otherwise?
Symbols can begin with + or - .
--Steve
On Dec 24, 2008, at 7:23 PM, Abhishek Reddy wrote:
>
> Hi,
>
> http://clojure.org/reader says symbols "begin with a non-numeric
> character and can c
Hi,
http://clojure.org/reader says symbols "begin with a non-numeric
character and can contain alphanumeric characters and *, + ..."
What are the numeric characters? It seems to include '+' and '-' as
well as digits -- is that correct, and are there any more?
Cheers
--
Abhishek Reddy
http://
On Wednesday 24 December 2008 13:44, Mark Volkmann wrote:
> Why doesn't the list below that is the second argument to reduce need
> to be quoted?
> Is () always treated the same as '() ?
>
> (reduce conj () (range 5))
Empty lists self-evaluate:
user=> ()
()
user=> '()
()
Similarly:
user=> (e
Why doesn't the list below that is the second argument to reduce need
to be quoted?
Is () always treated the same as '() ?
(reduce conj () (range 5))
--
R. Mark Volkmann
Object Computing, Inc.
--~--~-~--~~~---~--~~
You received this message because you are subsc
I'd write it this way:
(apply + (mapcat #(range 1 %) (range 2 14)))
I think idiomatically I would have written it with (partial range 1)
instead of #(range 1 %), but I prefer compact forms.
Mibu
On Dec 24, 8:57 pm, MattyDub wrote:
> I was presented with the question "How many gifts, total, ar
On Wednesday 24 December 2008 12:22, Stephen C. Gilardi wrote:
> On Dec 24, 2008, at 2:47 PM, Randall R Schulz wrote:
> >> 364
> >> [...]
> >> Hmmm, enough gifts for every other day of the year!
> >
> > Wow. The planet on which you reside orbits a good bit further from
> > the sun than does merry
On Dec 24, 2008, at 2:47 PM, Randall R Schulz wrote:
364
[...]
Hmmm, enough gifts for every other day of the year!
Wow. The planet on which you reside orbits a good bit further from the
sun than does merry old Earth!
Hi Randall,
Here's what I was thinking:
364 other days + 1 Chris
On Dec 24, 2008, at 3:00 PM, MattyDub wrote:
Whoa - what is this "reductions" of which you speak? I've never heard
of it. That does shorten it...
http://groups.google.com/group/clojure/browse_thread/thread/3edf6e82617e18e0
--Steve
smime.p7s
Description: S/MIME cryptographic signature
Whoa - what is this "reductions" of which you speak? I've never heard
of it. That does shorten it...
-Matt
On Dec 24, 11:47 am, Randall R Schulz wrote:
> On Wednesday 24 December 2008 11:30, Stephen C. Gilardi wrote:
>
> > ...
>
> > Nice, Matt!
>
> > With the "reductions" function recently dis
On Wednesday 24 December 2008 11:30, Stephen C. Gilardi wrote:
> ...
>
> Nice, Matt!
>
> With the "reductions" function recently discussed this becomes:
>
> user=> (reduce + (reductions + (range 1 13)))
> 364
> user=>
>
> Hmmm, enough gifts for every other day of the year!
Wow. The planet on whi
On Dec 24, 2008, at 1:57 PM, MattyDub wrote:
(Originally, I didn't know about the 2-argument version of range,
so I was using map and an anonymous inline function to add 1 to each
result from range, like:
(map #(sum-up-to (inc %)) (range 12))
Then I thought "This can't be right, there has to
I was presented with the question "How many gifts, total, are
mentioned in the song 'The 12 Days of Christmas'?" I thought, "Aha!
I'll use clojure to figure it out." But I wanted to do it
idiomatically, using some functional constructs (with which I'm not
very familiar). First, I needed to know
Hi,
On Wed, Dec 24, 2008 at 8:47 AM, kogu wrote:
> This is not clojure related but Slime/Emacs related.
>
> I am using Slime/Emacs/Clojure Mode/Swank Clojure on Windows.
>
> I have a dual monitor setup. So I create a new frame, move that to the
> second monitor, and set that to the REPL buffer.
On Dec 24, 2008, at 8:11 AM, Chouser wrote:
On Wed, Dec 24, 2008 at 1:44 AM, Stephen C. Gilardi
wrote:
Based on Chouser's version, but using atoms, a splash of color, a
little
more destructuring and more separation of model and view.
Would you be willing to explain why you think it's corr
The Clojure Plugin for Netbeans NBM is now available on Google Code.
It can be downloaded at:
http://enclojure-nb-clojure-plugin.googlecode.com/files/org-enclojure-ide-nb-editor.nbm
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
Hi,
This is not clojure related but Slime/Emacs related.
I am using Slime/Emacs/Clojure Mode/Swank Clojure on Windows.
I have a dual monitor setup. So I create a new frame, move that to the
second monitor, and set that to the REPL buffer. This allows me to
work quickly, without switching to var
On Dec 24, 2008, at 7:46 AM, MikeM wrote:
>
> With the addition of release-pending-sends, is it now possible to
> support await in an agent action? I see that await still throws if
> used in an agent action, but if a send is released, it seems
> reasonable to be able to use await. I suppose awai
On Wed, Dec 24, 2008 at 1:44 AM, Stephen C. Gilardi wrote:
> Based on Chouser's version, but using atoms, a splash of color, a little
> more destructuring and more separation of model and view.
Would you be willing to explain why you think it's correct to use
atoms here? I considered it, but wa
With the addition of release-pending-sends, is it now possible to
support await in an agent action? I see that await still throws if
used in an agent action, but if a send is released, it seems
reasonable to be able to use await. I suppose await could internally
do a release-pending-sends to allow
* Starting to see your point. In a 100 CPU case, where 98 CPU's have
finished, we would find that the last few hosts that need to be
calculated are suddenly a 100 years older, and probably just drop
dead. That could be remedied by passing the year as a value of the
agent,
but then your second poin
* Starting to see your point. In a 100 CPU case, where 98 CPU's have
finished, we would find that the last few hosts that need to be
calculated are suddenly a 100 years older, and probably just drop
dead. That could be remedied by passing age as a value of the agent,
but then your second point ind
25 matches
Mail list logo