3 ms·
You can use `get` from the `toolz` package: toolz.get(value, ['this', 'that', 'the_other'] There's also a Cython implementation called `cytoolz`.
by nerdponx 10y ago
You can use `get` from the `toolz` package:
toolz.get(value, ['this', 'that', 'the_other']
There's also a Cython implementation called `cytoolz`.