← Graph

Hash Slice / select-keys

concept 1 connections

Everyday primitive available in Clojure as select-keys and in Ruby as Hash#slice: given a map and a list of keys, return a new map with only those keys. Used in the talk as the conceptual seed of EQL: API-level selection is essentially select-keys raised to the level of API queries, extended with traversals (like jq) and derivations.

category
pattern
concept EQL
related_to
Hash Slice / select-keys concept
EQL selection generalizes hash-slice/select-keys to the API level.

Provenance

Read by
1 extraction