5.40.8 Removing an element in a list: suppress
The suppress command removes elements from a list.
- suppress takes two arguments:
- L, a list.
- i, a nonnegative integer.
- suppress(L,i) returns the list L
with the element at index i removed.
Example
Input:
suppress([3,4,2],1)
Output: