Re: Thread Macro For Inserting In Arbitrary Positions

2011-07-05 Thread Sean Corfield
On Tue, Jul 5, 2011 at 4:14 PM, Asim Jalis wrote: > Here is an example of using this: > > (--> "hello world" (.toUpperCase _) (.toLowerCase _) (.indexOf _ "w")) BTW, that's not a very compelling example since you can already do: (-> "hello world!" .toUpperCase .toLowerCase (.indexOf "w")) -- Se

Re: Thread Macro For Inserting In Arbitrary Positions

2011-07-05 Thread Mark Rathwell
> Is there a reason something like this does not exist in clojure.core? > Is this an oversight or is there a reason this is not there? Previous discussions on this subject: 1. http://groups.google.com/group/clojure/browse_thread/thread/e826fc303e440b7c/0e7bdba707b7982d (in particular Rich's re

Re: Thread Macro For Inserting In Arbitrary Positions

2011-07-05 Thread Asim Jalis
Here is an example of using this: (--> "hello world" (.toUpperCase _) (.toLowerCase _) (.indexOf _ "w")) On Tue, Jul 5, 2011 at 3:50 PM, Asim Jalis wrote: > Frequently I want to use the thread macros (-> or ->>) except I need > to thread the arguments into positions other than the first and the