The updated doc is here: Noteworthy Differences from other Languages · The Julia Language
- Julia’s range indexing has the format of
x[start:step:stop]
, whereas Python’s format isx[start:(stop+1):step]
. Hence,x[0:10:2]
in Python is equivalent tox[1:2:10]
in Julia. Similarly,x[::-1]
in Python, which refers to the reversed array, is equivalent tox[end:-1:1]
in Julia.