mlkernels.util module¶
- mlkernels.util.expand[source]¶
Expand a sequence to the same element repeated twice if there is only one element.
- Parameters
xs (tuple or list) – Sequence to expand.
- Returns
xs * 2 or xs.
- Return type
tuple or list
Expand a sequence to the same element repeated twice if there is only one element.
xs (tuple or list) – Sequence to expand.
xs * 2 or xs.
tuple or list