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

UnitStepTake (modified)

Part

FilledSmallSquareexpr[[i]] or Part[expr, i] gives the i part of expr.

FilledSmallSquareexpr[[-i]] counts from the end.

FilledSmallSquareexpr[[0]] gives the head of expr.

FilledSmallSquareexpr[[i, j, ... ]] or Part[expr, i, j, ... ] is equivalent to expr[[i]] [[j]] ... .

FilledSmallSquareexpr[[ , , ... ]] gives a list of the parts , , ... of expr.

FilledSmallSquare You can make an assignment like t[[i]] = value to modify part of an expression.

FilledSmallSquare When expr is a list, expr[[ , , ... ]] gives a list of parts. In general, the head of expr is applied to the list of parts.

FilledSmallSquare You can get a nested list of parts from expr[[, , ... ]]. Each part has one index from each list.

FilledSmallSquare If any of the are All, all parts at that level are kept.

FilledSmallSquareexpr[[All, i]] effectively gives the i column in expr.

FilledSmallSquare Notice that lists are used differently in Part than in functions like Extract, MapAt and Position.

FilledSmallSquareexpr[[ Range[i, j] ]] can be used to extract sequences of parts.

FilledSmallSquare In StandardForm and InputForm, expr[[spec]] can be input as exprspec.

FilledSmallSquare and can be entered as AliasIndicator[[AliasIndicator and AliasIndicator]]AliasIndicator or \[LeftDoubleBracket] and \[RightDoubleBracket].

FilledSmallSquare In StandardForm, expr[[spec]] can be input as or

FilledSmallSquare See The Mathematica Book: Section 1.2.4, Section 1.2.4, Section 1.4.7, Section 1.8.4, Section 1.8.4 and Section 2.1.4.

FilledSmallSquare See also: First, Head, Last, Extract, Position, ReplacePart, MapAt, Take, PadLeft.

FilledSmallSquare Related package: LinearAlgebra`MatrixManipulation`.

Further Examples

UnitStepTake (modified)