Removes howMany elements from the list.
Unlike $(D_PSYMBOL removeFront()), this method doesn't fail, if it could not remove howMany elements. Instead, if howMany is greater than the list length, all elements are removed.
How many elements should be removed.
The number of elements removed.
SList!int l = SList!int([8, 5, 4]); assert(l.removeFront(0) == 0); assert(l.removeFront(2) == 2); assert(l.removeFront(3) == 1); assert(l.removeFront(3) == 0);
See Implementation
Removes howMany elements from the list.
Unlike $(D_PSYMBOL removeFront()), this method doesn't fail, if it could not remove howMany elements. Instead, if howMany is greater than the list length, all elements are removed.