Pick
Pick(nestedList, nestedSelection)
returns the elements of
nestedList
that have valueTrue
in the corresponding position innestedSelection
.
Pick(nestedList, nestedSelection, pattern)
returns the elements of
nestedList
those values in the corresponding position innestedSelection
match thepattern
.
Examples
>> Pick({{1, 2}, {2, 3}, {5, 6}}, {{1}, {2, 3}, {{3, 4}, {4, 5}}}, {1} | 2 | {4, 5}){{1,2},{2},{6}}
Related terms
Implementation status
- ✅ - full supported