Create a function to insert value at many locations in sequence. >>> expander([0, 2])(['a', 'b', 'c'], 'z') ('z', 'a', 'z', 'b', 'c')
(where)
| 705 | |
| 706 | |
| 707 | def expander(where): |
| 708 | """Create a function to insert value at many locations in sequence. |
| 709 | |
| 710 | >>> expander([0, 2])(['a', 'b', 'c'], 'z') |
| 711 | ('z', 'a', 'z', 'b', 'c') |
| 712 | """ |
| 713 | return _expander(tuple(where)) |
| 714 | |
| 715 | |
| 716 | def new_blockdim(dim_shape, lengths, index): |
no test coverage detected