-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Closed
Labels
arrays[a, r, r, a, y, s][a, r, r, a, y, s]collectionsData structures holding multiple items, e.g. setsData structures holding multiple items, e.g. setsdesignDesign of APIs or of the language itselfDesign of APIs or of the language itselfsearch & findThe find* family of functionsThe find* family of functionsspeculativeWhether the change will be implemented is speculativeWhether the change will be implemented is speculative
Description
Seems like it would be useful to have a version of find that returns a vector of cartesian indices, in analogy to the new enumerate. findnz is basically a pre-CartesianIndex version of this idea that only happens to work for 2d arrays.
One possible API, in analogy with the enumerate API, is to have find take a singleton-valued first parameter that selects the output format.
Thoughts?
mbauman, sglyon and dpsanders
Metadata
Metadata
Assignees
Labels
arrays[a, r, r, a, y, s][a, r, r, a, y, s]collectionsData structures holding multiple items, e.g. setsData structures holding multiple items, e.g. setsdesignDesign of APIs or of the language itselfDesign of APIs or of the language itselfsearch & findThe find* family of functionsThe find* family of functionsspeculativeWhether the change will be implemented is speculativeWhether the change will be implemented is speculative