Mathematica 9 is now available

Extract

Usage

Extract[expr, list] extracts the part of expr at the position specified by list.
Extract[expr, { ,  , ... }] extracts a list of parts of expr.
Extract[expr, ... , h] extracts parts of expr, wrapping each of them with head h before evaluation.


Notes

Extract[expr, {i, j, ... }] is equivalent to Part[expr, i, j, ... ].
• The position specifications used by Extract have the same form as those returned by Position, and used in functions such as MapAt and ReplacePart.
• You can use Extract[expr, ... , Hold] to extract parts without evaluation.
• If expr is a SparseArray object, Extract[expr, ... ] extracts parts in the corresponding ordinary array.
• See Section 2.4.2.
• See also: Part, Take, PadLeft.
• New in Version 3.


Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.