Hello. First of all, thank you very much for the great library.
Follow the description useful, mostly pure functions that are "missing" from clojure.core. Among the functions that I feel so is removev and keepv.
At some point I came across Clojure's deadly sin
article about lazy calculations. And since then I prefer to write flows in most cases in eager manner like this, instead of using "default" lazy with map approach:
We also have a function in the standard library that continues this logic. filterv
But for some reason unknown to me, there are no functions removev and keepv, which, together with mapv and filter, are often used in thread last macro(->>)
Also, in my practice, I work mostly with small data sequenes, not infinite.
Besides being faster it is also more logical when using debuggers such as Flowstorm's stepper.
True, we can use transducers instead and it will even be faster. But this approach is more unusual, especially when you work in a team.
Hello. First of all, thank you very much for the great library.
Follow the description
useful, mostly pure functions that are "missing" from clojure.core
. Among the functions that I feel so isremovev
andkeepv
. At some point I came across Clojure's deadly sin article about lazy calculations. And since then I prefer to write flows in most cases in eager manner like this, instead of using "default" lazy withmap
approach:We also have a function in the standard library that continues this logic.
filterv
But for some reason unknown to me, there are no functionsremovev
andkeepv
, which, together withmapv
andfilter
, are often used in thread last macro(->>)Also, in my practice, I work mostly with small data sequenes, not infinite. Besides being faster it is also more logical when using debuggers such as Flowstorm's stepper.
True, we can use transducers instead and it will even be faster. But this approach is more unusual, especially when you work in a team.
Example of possible usage:
Let me know if this is an acceptable proposal, but you do not have time to implement it and I will try to prepare a PR.