(***************************************************)
(** * Applying functions to the elements of a list *)
(***************************************************)
(************)
(** ** Map  *)
(************)
Section Map.
Variables (A : Type) (B : Type).
Variable f : A -> B.
Local Notation map := (@map A B f).

Lemma map_last : forall l a,
map (l ++ [a]) = (map l) ++ [f a].