Arguments
str
required
The key of the list.
"BEFORE" | "AFTER"
required
Whether to insert the element before or after pivot.
Any
required
The element to insert before or after.
Any
required
The element to insert.
Response
The list length after insertion,
0 when the list doesn’t exist or -1 when pivot was not found.