An introduction to the Julia language, part 1
An introduction to the Julia language, part 1
Posted Aug 31, 2018 4:25 UTC (Fri) by cry_regarder (subscriber, #50545)In reply to: An introduction to the Julia language, part 1 by leephillips
Parent article: An introduction to the Julia language, part 1
By the way, I have found arbitrary indexing to be handy for naturally expressing dynamic programming tableaus and pre-built recursive bases. The code naturally matches the math.
I've worked around it in fixed index languages by having a constant holding the offset:
o = 3
i[0 +o] = i[-3 +o] + i[-1 +o]
ugly but readable against the maths.
