Re: ANN: Swiss Arrows

2012-04-02 Thread Robert Levy
Just to follow up, I fixed the issues Roman found. Thanks again for your help. I also took the advice from the issue Stephen Compall created, and removed the special handling of quoted forms. On Mon, Apr 2, 2012 at 5:25 AM, Roman Perepelitsa < roman.perepeli...@gmail.com> wrote: > And a couple

Re: ANN: Swiss Arrows

2012-04-02 Thread Robert Levy
Thank you for finding these anomolies! > user=> (-<> 0 [1 <> <>]) > [1 0] > > This case is undefined behavior because only one <> point is allowed. > user=> (-<> 0 {1 <> 2 <>}) > IllegalArgumentException No value supplied for key: 2 > clojure.lang.PersistentHashMap.createWithCheck (Persistent

Re: ANN: Swiss Arrows

2012-04-02 Thread Alex Baranosky
The Parallel Furcula has interesting possibilities :) On Mon, Apr 2, 2012 at 5:25 AM, Roman Perepelitsa < roman.perepeli...@gmail.com> wrote: > And a couple more: > > user=> (-<> 0 [1 <> <>]) > [1 0] > > user=> (-<> 0 {<> 1}) > CompilerException java.lang.RuntimeException: Unable to resolve symbo

Re: ANN: Swiss Arrows

2012-04-02 Thread Roman Perepelitsa
And a couple more: user=> (-<> 0 [1 <> <>]) [1 0] user=> (-<> 0 {<> 1}) CompilerException java.lang.RuntimeException: Unable to resolve symbol: <> in this context, compiling:(NO_SOURCE_PATH:16) user=> (-<> 0 {1 <> 2 <>}) IllegalArgumentException No value supplied for key: 2 clojure.lang.Persist

Re: ANN: Swiss Arrows

2012-04-02 Thread Roman Perepelitsa
Looks very nice! Is the following behavior expected with Clojure 1.3? user=> (-<> 0 '(<>)) (<> 0) user=> (-<> 0 [<>]) CompilerException java.lang.RuntimeException: Unable to resolve symbol: <> in this context, compiling:(NO_SOURCE_PATH:24) ;; I guess this one is expected, although it would be n

Re: ANN: Swiss Arrows

2012-04-01 Thread Ambrose Bonnaire-Sergeant
Ha! Love it. Ambrose On Mon, Apr 2, 2012 at 1:58 PM, Robert Levy wrote: > Errata: I mistakenly referred to The Trystero Furcula by its former > work-in-progress name (the double furcula). > > Just to be clear, the arrows presently included in the swiss arrows > collection are: > > -<> The Diam

Re: ANN: Swiss Arrows

2012-04-01 Thread Robert Levy
Errata: I mistakenly referred to The Trystero Furcula by its former work-in-progress name (the double furcula). Just to be clear, the arrows presently included in the swiss arrows collection are: -<> The Diamond Wand <<- The Back Arrow -< , -<:p The Furcula, Parallel Furcula -<< , -<<:p The Trys

ANN: Swiss Arrows

2012-04-01 Thread Robert Levy
Swiss arrows is a library I wrote today, providing a number of useful arrow macros. - The Diamond Wand: a generalized arrow macro for threading into any position. - The Back Arrow: ->> with its arguments reversed, convenient in some cases. - The Furcula / Parallel Furcula: branch th