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 symbol: <> > in this context, compiling:(NO_SOURCE_PATH:16) > > user=> (-<> 0 {1 <> 2 <>}) > IllegalArgumentException No value supplied for key: 2 > clojure.lang.PersistentHashMap.createWithCheck (PersistentHashMap.java:89) > > Roman Perepelitsa. > > 2012/4/2 Roman Perepelitsa <roman.perepeli...@gmail.com> > >> 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 nice if it worked. >> user=> (-<> 0 '(1 (1 <>))) >> (1 (1 <>) 0) >> >> Roman Perepelitsa. >> >> 2012/4/2 Robert Levy <r.p.l...@gmail.com> >> >>> 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 the result of an operation >>> in multiple directions, sequentially or in parallel. >>> - The Double Furcula / Parallel Furcula, Double-style: the above, >>> using ->> instead of -> >>> - The Diamond Fishing Rod / Parallel Diamond Fishing Rod: the above, >>> using -<> >>> >>> Swiss Arrows is available to try out right now at >>> https://github.com/rplevy/swiss-arrows >>> >>> Feedback, ideas, and pull requests are of course very welcome. >>> >>> Rob >>> >>> -- >>> 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 >>> Note that posts from new members are moderated - please be patient with >>> your first post. >>> To unsubscribe from this group, send email to >>> clojure+unsubscr...@googlegroups.com >>> For more options, visit this group at >>> http://groups.google.com/group/clojure?hl=en >> >> >> > -- > 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 > Note that posts from new members are moderated - please be patient with > your first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en > -- 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 Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en