# Through[] For Association

I have an association

<| a->f, b->g |>


where f and g are pure functions. Is there a nice way to apply arguments to both f and g? E.g.

<| a->f, b->g |>[x] --> <| a->f[x], b->g[x] |>


As Kuba provided in a comment we can Map a Function that applies its argument to a specific expression, e.g. x:
#[x] & /@ <|a -> f, b -> g|>

<|a -> f[x], b -> g[x]|>

• @LLlAMnYP you mean like Through[<|a -> f, b -> g|>[x]] ? No, it does not; the body evaluates to Missing["KeyAbsent", x]. Through[Unevaluated[<|a -> f, b -> g|>[x]]] gives Association[(a -> f)[x], (b -> g)[x]] but I don't find that helpful. With[{asc = <|a -> f, b -> g|>}, Through[Unevaluated[asc[x]]]] just kicks back Through[Unevaluated[<|a -> f, b -> g|>[x]]]. – Mr.Wizard Sep 26 '17 at 8:37