Closed x1unix closed 6 years ago
How would that work? GroupedSequence
is not "like" an array; it is "like" an object. Its interface inherits from ObjectLikeSequence
because it makes sense to perform operations on it that you would perform on an object; i.e., getting the value(s) associated with a key. You cannot slice a grouped sequence for the same reason you cannot slice an object.
Please add
slice
method fromArrayLikeSequence
, or better extendGroupedSequence
fromArrayLikeSequence
instead ofObjectSequence
to allow array operations.