beicon icon indicating copy to clipboard operation
beicon copied to clipboard

fork-join and zip should have a dedicated parameter for selector

Open noxecane opened this issue 8 years ago • 0 comments

I know this situation might not be general.

So I extended beicon.core/Observable to implement the IFn interface. But this led to problems in the arrangement of my arguments when using zip. Looking through the source code I discovered, that only fork-join and zip check if their first argument is a function before proceeding. I would like to suggest changing it to a variadic function(not sure if that's correct). Something like this

(defn zip
    ([& items].....)
    ([selector & items...........]))

noxecane avatar May 09 '17 07:05 noxecane