|
6 | 6 | 'true', 'stop', 'gen', 'chunked', 'otherwise', 'custom_dir', 'AttrDict', 'type_hints', 'annotations', |
7 | 7 | 'anno_ret', 'argnames', 'with_cast', 'store_attr', 'attrdict', 'properties', 'camel2snake', 'snake2camel', |
8 | 8 | 'class2attr', 'getattrs', 'hasattrs', 'setattrs', 'try_attrs', 'GetAttrBase', 'GetAttr', 'delegate_attr', |
9 | | - 'ShowPrint', 'Int', 'Str', 'Float', 'detuplify', 'replicate', 'setify', 'merge', 'range_of', 'groupby', |
10 | | - 'last_index', 'filter_dict', 'filter_keys', 'filter_values', 'cycle', 'zip_cycle', 'sorted_ex', 'not_', |
11 | | - 'argwhere', 'filter_ex', 'range_of', 'renumerate', 'first', 'nested_attr', 'nested_idx', 'val2idx', |
| 9 | + 'ShowPrint', 'Int', 'Str', 'Float', 'concat', 'detuplify', 'replicate', 'setify', 'merge', 'range_of', |
| 10 | + 'groupby', 'last_index', 'filter_dict', 'filter_keys', 'filter_values', 'cycle', 'zip_cycle', 'sorted_ex', |
| 11 | + 'not_', 'argwhere', 'filter_ex', 'range_of', 'renumerate', 'first', 'nested_attr', 'nested_idx', 'val2idx', |
12 | 12 | 'uniqueify', 'num_methods', 'rnum_methods', 'inum_methods', 'fastuple', 'arg0', 'arg1', 'arg2', 'arg3', |
13 | 13 | 'arg4', 'bind', 'map_ex', 'compose', 'maps', 'partialler', 'instantiate', 'using_attr', 'Self', 'Self', |
14 | 14 | 'copy_func', 'patch_to', 'patch', 'patch_property', 'ImportEnum', 'StrEnum', 'str_enum', 'Stateful', |
@@ -409,6 +409,11 @@ class Float(float,ShowPrint): |
409 | 409 | "An extensible `float`" |
410 | 410 | pass |
411 | 411 |
|
| 412 | +# Cell |
| 413 | +def concat(colls)->list: |
| 414 | + "Concatenate all collections in `colls`" |
| 415 | + return list(itertools.chain.from_iterable(colls)) |
| 416 | + |
412 | 417 | # Cell |
413 | 418 | def detuplify(x): |
414 | 419 | "If `x` is a tuple with one thing, extract it" |
|
0 commit comments