Diamond wand from swiss arrows
fakedrake opened this issue · comments
The clojure library swiss arrows provides a nice function threading operator that would probably be translated to ~<>
:
The Diamond Wand - similar to -> or ->> except that the flow of execution is passed through specified <> positions in each of the forms.
(-<> 2
(* <> 5)
(vector 1 2 <> 3 4))
=> [1 2 10 3 4]
It's nice and useful and it would be nice to have I think.
I didn't notice ~>
supports holes