Skip to content

Pick

Picks the elements of the first list for which the second list is True.

$ wo 'Pick[{1, 2, 3, 4}, {True, False, True, False}]'
{1, 3}