What is to "remove" like "prepend" is to "append"? [closed]

What is to "remove" like "prepend" is to "append"?

In technical domains (e.g. programming), "append" adds something to the end, whereas "prepend" adds something to the beginning.

What is the analogue of "prepend" for "remove"?


Solution 1:

There isn't consensus in the domain.

In Javascript it's shift for an array. The equivalent in Swift is removeFirst. Swift's more explicit naming is likely due to the fact that shift is not intuitive.