-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Closed
Labels
broadcastApplying a function over a collectionApplying a function over a collectiondesignDesign of APIs or of the language itselfDesign of APIs or of the language itselfspeculativeWhether the change will be implemented is speculativeWhether the change will be implemented is speculative
Description
i'm not sure whether it's better to ask this on Discourse, but has it been discussed to have Function{N} where N is the number of input arguments?
my use case is that i'd like to make the interface to any and all consistent with that of map. currently, the predicate versions of the former can not take a variable number of iterables like the latter can. rather, you have to manually zip them up. no big deal, but consistency is nice.
the problem is that any and all have methods which specialize on Arrays and regions. and so a simple change of the signature to end with a var arg gets confused when there are exactly two. a conceptually simple fix to this would be to dispatch on how many input args the predicate took.
cstjean
Metadata
Metadata
Assignees
Labels
broadcastApplying a function over a collectionApplying a function over a collectiondesignDesign of APIs or of the language itselfDesign of APIs or of the language itselfspeculativeWhether the change will be implemented is speculativeWhether the change will be implemented is speculative