Your example could be written:
(- foo
bar
(baz quuz)
blah)
That misses the point of having a generic threading macro.
But I suspect you meant something like this:
(- foo
bar
(as- (baz whiz quuz))
blah)
That's ugly.
Would love it if as- allowed removing
I like the as- macro, mostly because it'd theoretically obviate the need to
include the Swiss Arrows library anymore.
There's one reason why I keep going back to Swiss Arrows though: the ability to
include single-arg functions in the chain that do not have the explicit token.
i.e. in Swiss
Second- that would be a nice, and intuitive, enhancement.
---
Joseph Smith
j...@uwcreations.com
@solussd
On Aug 20, 2013, at 8:52 PM, Ken Restivo k...@restivo.org wrote:
I like the as- macro, mostly because it'd theoretically obviate the need to
include the Swiss Arrows library anymore.
Your example could be written:
(- foo
bar
(baz quuz)
blah)
But I suspect you meant something like this:
(- foo
bar
(as- (baz whiz quuz))
blah)
In other words, you use as- with - for just those cases where you
need something that isn't in the first or last argument