Congratulations! Keep up the good work,
/Olov
--~--~-~--~~~---~--~~
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
> The 'let' macro already has a similar check.
>
> Attached is a patch that adds even-ness and related assertions to a
> bunch of core macros.
That's better - I applied the patch and it's working as expected here.
/Olov
--~--~-~--~~~---~--~~
You received this mes
The for macro is only valid for a vector of even size. Throwing an
exception when this isn't the case would have helped the original
poster:
user=> (take 100 (for [x (range 1000) y (range 1000) (< x y)][x y]))
java.lang.IllegalArgumentException: for got a malformed vector
argument, more details
Issue 29 created with patch attached:
http://code.google.com/p/clojure/issues/detail?id=29
On Dec 14 2008, 1:29 am, Olov Lassus wrote:
> Hi,
> Here's another patch from me:
>
> The clojure.lang.Range type is implemented with integer type start and
> end indices. The cor
Issue 28 created with patch attached:
http://code.google.com/p/clojure/issues/detail?id=28
On Dec 14 2008, 12:42 am, Olov Lassus wrote:
> Hi,
> thanks for Clojure! Here's my first contribution (CA filled out and
> will arrive next week):
>
> Negating Integer.MIN_VALUE
7483649)
I also made the range function slightly less conservative < vs <=
wise. This shouldn't affect correctness but (range 0 2147483647) will
now return a Range (after patch) instead of a LazyCons (before).
/Olov Lassus
--~--~-~--~~~---~--~~
You re
83648)
2147483647
/Olov Lassus
--~--~-~--~~~---~--~~
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