grenada.transformers

Functions for transforming single Things or collections of Things.

->missing-bar-type-defs

(->missing-bar-type-defs bar-keys)
Generated constructor for the missing-bar-type-defs type.

apply-if

(apply-if p f)
Returns a transformer that applies transformer F to a value if it fulfills P
and otherwise returns unchanged.

missing-bar-type-defs?

(missing-bar-type-defs? x__560__auto__)
Generated predicate for the missing-bar-type-defs type.

specify-cmeta-any

(specify-cmeta-any tm)(specify-cmeta-any extra-def-for-bar-type tm)
If TM has a :grenada.bars/any Bar containing Cmetadata (as extracted by
lein-grim), return a new Thing with the data from the Any Bar decomposed into
Bars with more meaningful types.

This function tries its best to extract meaning from the unspecified input
data. However, the mantra is: if in doubt, leave it out. – We don't want to
compromise meaningfulness.

If the :grenada.bars/any Bar contains a :grenada.cmeta/bars entry, those Bars
are also added to TM, provided that grenada.bars/def-for-bar-type or
extra-def-for-bar-type contain definitions for them.

Available handlers: :skip, :attach-anyway

strip-all

(strip-all tm)
Removes all Bars from TM.