We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I miss sorting operations like sort, sortBy & sortWith in List the most when working with arrays. I think these would be worth adding to elm/core's Array module. Until anything gets decided, array-extra could just copy Lists sorting API:
sort
sortBy
sortWith
List
elm/core
Array
array-extra
sortWith : (a -> a -> Order) -> Array a -> Array a sortWith elementOrder array = array |> Array.toList |> List.sortWith elementOrder |> Array.fromList -- same with sort & sortBy
An example use-case is finding an Arrays 5 biggest numbers.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I miss sorting operations like
sort
,sortBy
&sortWith
inList
the most when working with arrays.I think these would be worth adding to
elm/core
'sArray
module. Until anything gets decided,array-extra
could just copyList
s sorting API:An example use-case is finding an
Array
s 5 biggest numbers.The text was updated successfully, but these errors were encountered: