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

InsertDeleteCases

Delete

FilledSmallSquareDelete[expr, n] deletes the element at position n in expr. If n is negative, the position is counted from the end.

FilledSmallSquareDelete[expr, i, j, ... ] deletes the part at position i, j, ... .

FilledSmallSquareDelete[expr, , , ... , , , ... , ... ] deletes parts at several positions.

FilledSmallSquare Example: Delete[a, b, c, d, 3] LongRightArrow.

FilledSmallSquareDelete[a, b, c, d, 1, 3] LongRightArrow.

FilledSmallSquare Deleting the head of a particular element in an expression is equivalent to applying FlattenAt to the expression at that point.

FilledSmallSquare Example: Delete[a, b, c, 2, 0] LongRightArrow.

FilledSmallSquare Deleting the head of a whole expression makes the head be Sequence.

FilledSmallSquare Example: Delete[a, b, 0] LongRightArrow.

FilledSmallSquare See The Mathematica Book: Section 1.8.6.

FilledSmallSquare See also: Insert, MapAt, ReplacePart, FlattenAt, DeleteCases, Drop, StringDrop.

Further Examples

InsertDeleteCases