22 May
2017
22 May
'17
2:27 a.m.
On Sun, May 21, 2017 at 10:43 AM, Paul Laos
By default push(obj) would insert an object to the end of the list, while push(obj, index) would insert the object at index, just like pop() removes (and returns) the object at the end of the list, and pop(index) removes (and returns) the object at the index.
The name asymmetry between .pop() and .append() has always bothered me. Cheers! -- Juancarlo *Añez*