Closed pktpls closed 10 months ago
The docs for splice() say it returns the element removed last or null, but it actually returns the modified array.
splice()
Which is correct?
Quick web search:
Array.splice()
std::list::splice
array_splice()
The docs for
splice()
say it returns the element removed last or null, but it actually returns the modified array.Which is correct?
Quick web search:
Array.splice()
returns nothingstd::list::splice
returns nothingarray_splice()
returns an array of the removed elements