selects elements in the association assoc for which crit applied to their keys is True.
- KeySelect yields an Association object whose elements appear in the same order as they did in assoc.
- KeySelect can be applied not only to Association objects, but also to lists of rules.
- KeySelect[crit][assoc] is equivalent to KeySelect[assoc,crit].
- Parallelize[KeySelect[assoc,crit]] computes KeySelect[assoc,crit] in parallel on all subkernels. »
Examplesopen allclose all
Wolfram Research (2014), KeySelect, Wolfram Language function, https://reference.wolfram.com/language/ref/KeySelect.html.
Wolfram Language. 2014. "KeySelect." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/KeySelect.html.
Wolfram Language. (2014). KeySelect. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/KeySelect.html