Skip to content

Pick

Pick(nestedList, nestedSelection)

returns the elements of nestedList that have value True in the corresponding position in nestedSelection.

Pick(nestedList, nestedSelection, pattern)

returns the elements of nestedList those values in the corresponding position in nestedSelection match the pattern.

Examples

>> Pick({{1, 2}, {2, 3}, {5, 6}}, {{1}, {2, 3}, {{3, 4}, {4, 5}}}, {1} | 2 | {4, 5})
{{1,2},{2},{6}}

Cases, Select

Implementation status

  • ✅ - full supported

Github