pyufunc.flatten_iterable#
- pyufunc.flatten_iterable(iterable)#
Flatten one level of nested iterables.
- Parameters:
iterable – Iterable containing nested iterables.
Note
Source package:
boltons.Source repository: mahmoud/boltons
Source document: https://boltons.readthedocs.io/en/latest/
Source license: BSD License.
Example
>>> flatten_iterable([[1], [2, 3]]) [1, 2, 3]
- Returns:
Flattened values.
- Return type:
list[Any]