Back

expand (clj)

(source)

function

(expand config) (expand config innerf) (expand config innerf keys)
Expand 'modules' in the config map prior to initiation. The [[expand-key]] method is applied to each entry in the map to create an expansion, and the results are deep-merged together using [[converge]] to produce a new configuration. If two expansions generate different values for the same keys, an exception will be raised. Configuration values that do not come from an expansion will override keys from expansions, allowing conflicts to be resolved by user- defined values. Additionally, an function, innerf, may be supplied to transform the output from expand-key before it is converged. A common use for this is to [[deprofile]] the expansions.

Examples