scamp_extensions.utilities.sequences
Subpackage containing utility functions for manipulating lists/sequences (some of which are imported from
scamp.utilities
).
Functions
|
Takes a slice that loops back to the beginning if end is before start |
Decorator that allows the first argument of the function to be a list, tuple, or iterator, and in that case performs the function one each element individually, returning a list, tuple, or iterator. |
|
Same as |
|
|
Rotates a sequence s such that it begins with element l[n] and wraps back around to l[n-1]. |
|
Find the maximum _depth of any element in a nested sequence. |
|
Flattens a list, including ones containing multiple levels of nesting. |
Sums up all of the values within a nested list. |