Open jakirkham opened 6 years ago
Would be nice to have a ternary type operation for iterables.
Do you mean something like np.where or np.choose? Maybe something like: https://docs.python.org/3.6/library/itertools.html#itertools.compress
np.where
np.choose
Something like np.where.
Would be nice to have a ternary type operation for iterables.