You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 3, 2023. It is now read-only.
I was reading through the documentation, and noticed that keep was basically the same as filter. Looking into it a bit more, I believe keep is supposed to return the results of the transform that are not null as opposed to the original values, as laid out at https://clojuredocs.org/clojure.core/keep .
vart=transducers;varxf=t.keep(function(x){if(typeofx=="string")return"cool";});t.into([],xf,[0,1,"foo",3,4,"bar"]);// ["foo","bar"] -> should return ['cool', 'cool']
The text was updated successfully, but these errors were encountered:
I was reading through the documentation, and noticed that
keep
was basically the same asfilter
. Looking into it a bit more, I believekeep
is supposed to return the results of the transform that are not null as opposed to the original values, as laid out at https://clojuredocs.org/clojure.core/keep .The text was updated successfully, but these errors were encountered: