Wolfram ResearchPRODUCTSPURCHASEFOR USERSCOMPANYOUR SITES
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.

Pick

Usage

Pick[list, sel] picks out those elements of list for which the corresponding element of sel is True.
Pick[list, sel, patt] picks out those elements of list for which the corresponding element of sel matches patt.


Notes

• Example: Pick[ a, b, c ,  1, 0, 1 , 1]LongRightArrow .
sel can be a nested list of any depth.
Pick[list, sel, patt] picks out those list[[ ,  , ... ]] for which sel[[ ,  , ... ]] matches patt.
• Depending on the arrangement of elements matching patt in a nested list sel, Pick may return a ragged array.
• The heads in list and sel do not have to be List.
Pick works with SparseArray objects.
• See Section 2.4.1.
• See also: Cases, Part, Position, Boole, ListConvolve.
• New in Version 5.1.


Any questions about topics on this page? Click here to get an individual response.Buy NowFree TrialMore Information



 © 2009 Wolfram Research, Inc.  Terms of Use  Privacy Policy |
Sign up for our newsletter: