For API consistency, it would be great if we had a List, which would essentially be an Array, but with an API that is consistent with Map and Set, so that operations could be performed on it without having to bifurcate the code path to deal with the collection.
For API consistency, it would be great if we had a
List
, which would essentially be anArray
, but with an API that is consistent withMap
andSet
, so that operations could be performed on it without having to bifurcate the code path to deal with the collection.The interface should be something like:
Are there other array extras we should have, like
reduce
andreduceLeft
,some
,every
, etc?