3 ms·
a0,a1,a2 = arr.splitat({i,j}) maybe? It avoids repeating i and j twice and arr thrice, at least. Admittedly, there probably are cases where you really do want
by a1369209993 7y ago
a0,a1,a2 = arr.splitat({i,j})
maybe? It avoids repeating i and j twice and arr thrice, at least. Admittedly, there probably are cases where you really do want a range [x..^y] for arbitrary x and y, but it seems like most cases aren't.