injest
injest copied to clipboard
somex>>
How will this feature work?
For the injest.classical
namespace, it'll be pretty simple. Just replace ->>
with some->>
:
(defmacro somex>>
"Just like some->> but first composes consecutive transducing fns into a function
that sequences the thread values through the transducers."
[x & thread]
`(some->> ~x ~@(->> thread (i/pre-transducify-thread &env 2 `i/xfn i/transducable?))))
For the injest.path
namespace, we'll need to add another version of path->>
called path-some->>
to the injest.impl
namespace. It should source inspiration from the some->>
macro definition and convert it to the path semantics in the same way that path->>
handles the ->>
scenario.
PRs welcome!