3 ms·
I believe Julia lets you do this, although I'm not sure about the ease or generality of it.
by patagurbon 6y ago
I believe Julia lets you do this, although I'm not sure about the ease or generality of it.
- Jtsummers 6y agoApparently you can [0]. However, it seems (in my first reading) to be something I'd avoid because it sounds like the "natural" way to code in Julia is to assume 1-based and you're likely to run into issues with libraries if you try and do anything else. [0] https://docs.julialang.org/en/v1/devdocs/offset-arrays/ https://docs.julialang.org/en/v1/devdocs/offset-arrays/
- eigenspace 6y agoJulia is all about generic programming. There is a ton of support for offset arrays and people almost always try to support that style.