split-list
Splits a list into two lists at the first instance of a specified separator element.
Arguments
Inputs:
list
: The list to be split.
separator
: The specified separator at which the list is split.
append
: Whether to append the separator element to the first list.
If unspecified, defaults to False
.
prepend
: Whether to prepend the separator element to the second list.
If unspecified, defaults to False
.
Output:
first
: A list containing the values before the separator element.
second
: A list containing the values after the separator element.
Last updated