Skip to main content

group-keywords

function

clojure.core.match/group-keywords

(group-keywords [pattern])
Returns a pattern with pattern-keywords (:when and :as) properly grouped. The original pattern may use the 'flattened' syntax. For example, a 'flattened' pattern row like [a b :when even?] is grouped as [a (b :when even?)].

No examples yet. Be the first to add one!