Apply dictionary (Dict) to many keys at once (broadcast)

Dictionaries can readily be considered as functions with a finite domain. Thus, arguably, they should be callable anyways:

(d::Dict)(k) = d[k]

and caesar.(d.(p)) just works as expected.

5 Likes