Closed rtheunissen closed 6 years ago
Recently there's been talks about a array_keys_first and array_keys_last, which made me think that there should be a way to achieve this for associative types, whether it's a getKeyAt function or a view of the keys.
array_keys_first
array_keys_last
getKeyAt
After some more thought, I don't believe there is a use case here that can't be achieved with a traversal over a reversed copy.
Recently there's been talks about a
array_keys_first
andarray_keys_last
, which made me think that there should be a way to achieve this for associative types, whether it's agetKeyAt
function or a view of the keys.