list_split
-
compas_singular.utilities.list_split(thelist, indices)[source] Split list at given indices. Closed lists have the same first and last elements. If the list is closed, splitting wraps around if the first or last index is not in the indices to split.
- Parameters
thelist (list) – A list.
indices (list) – A list of indices to split.
- Returns
split_lists (list) – Nest lists from splitting the list at the given indices.