Hot answers tagged

6

You can use Function to proceed myDs[Select[Or @@ (Function[id, #id == id] /@ {5, 4, 1}) &], "name"] but there are shorter ways: myDs[Select[MemberQ[{5, 4, 1}, #id] &], "name"] myDs[Cases[KeyValuePattern["id" -> (5 | 4 | 1)]], "name"] myDs[GroupBy[#, Key["id"] -> Key["name"], First] & /* Lookup[Key /@ {5, 4, 1}]] but what if I ...



Only top voted, non community-wiki answers of a minimum length are eligible