Skip to content

KeySelect

Status: Stable

documented, exercised by the test suite and/or worked examples, with no known limitations recorded.

Description

KeySelect[assoc, pred]

Keeps the entries whose key satisfies pred.

Examples (1)

Every input below was run against the current Mathilda build and its output recorded.

Basic examples (1)

In[1]:= KeySelect[<|1 -> 10, 2 -> 20, 3 -> 30|>, EvenQ]
Out[1]= <|2 -> 20|>

Implementation notes

Attributes: Protected.

References