purescript-arrays
purescript-arrays copied to clipboard
groupWith?
i see sortBy/sortWith, but only groupBy. Minor convenience but it would be nicely parallel, and this missing one is often what I want: Theres no new logic, I just need to dive into some structure.
Pretty sure we can close this now. groupWith was added recently under the name groupAllBy
I don't think so; groupWith would be something like forall a b. Ord b => (a -> b) -> Array a -> Array (NonEmptyArray a). It would be a shorthand for \f -> groupBy (compare `on` f) or something similar.