Skip to content

Span

start ;; end represents an index span to select using Part.

Attributes[Span] := {Protected}

Simple examples

In[1]:= {a, b, c, d}[[Span[2, 3]]]
Out[1]= {b, c}
In[2]:= {a, b, c, d}[[Span[2, All]]]
Out[2]= {b, c, d}