Good question. I felt that returning the last removed item might be more useful since dealing with list return values can be cumbersome due to the lack of destructured assignment support, but I guess we could change it
The slice() function looks like a sane addition, I'll look into it
splice()
function, first why does its return value isn't, as in JS, an array of the deleted item(s)?slice()
function, is there any equivalent or should I just usefilter
based on index?Thanks in advance, if I can be of any help lemme know, tho that's a while I haven't coded in
C
:smile: