replace-all

(replace-all lst alst)


Description:

Replace all objects in lst with objects matching keys in alst


Arguments:

           alst -- a list of mappings for objects to replace in lst

            lst -- a scheme list


Returns: boolean


Examples:

(replace-all '(a b c c (d c b a)) '((c . x) (d . y))) => (a b x x (y x b a))



Back to index