This is documentation for Mathematica 6, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

Span (;;)

i;;j
represents a span of elements i through j.
i;;
a span from i to the end.
;;j
a span from the beginning to j.
;;
a span that includes all elements.
i;;j;;k
a span from i through j in steps of k.
i;;;;k
from i to the end in steps of k.
;;j;;k
from the beginning to j in steps of k.
;;;;k
from the beginning to the end in steps of k.
  • m[[i;;j;;k]] is equivalent to Take[m, {i, j, k}].
  • m[[i;;j]]=v can be used to reset a span of elements in a list or other expression.
  • When used in Part, negative i and j count from the end.
New in 6