Back

expand-case (clj)

(source)

function

(expand-case case-value tl opts env ks)
Expands a case-like value, in the same way as #profile, #user, etc. case-value is the value to dispatch on, e.g. the result of (System/getenv "USER") for #user. tl is the tagged-literal where the :value is a map to do the casing on. See implementation of #profile for an example of using this function from eval-tagged-literal.

Examples