3 ms·
It would be nice to have access to an overloadable index operator that works on multiple dimensions at once (like C#'s [1, 2, 5] syntax). It's sometimes not eas
by computerphage 10y ago
It would be nice to have access to an overloadable index operator that works on multiple dimensions at once (like C#'s [1, 2, 5] syntax). It's sometimes not easy to write something to be efficient if it has to go one-by-one like [1][2][5].
- spullara 10y agoDoesn't Rust have macros that let you modify the syntax? Maybe you could do this.
- spullara 10y agoDoesn't Rust have macros that let you modify the syntax? Maybe you could do this.
- gpm 10y agoThe ndarray library indexes via tuples, i.e. [(1,2,5)], which should be just as efficient as a built in syntax (if perhaps a bit uglier).