Test map with an apply command and anonymous function.