function map(fn, list) {

   return list
            ? cons(fn(head(list)), map(fn,tail(list)))
            : emptyList
            ;
}
function map(fn, list) {

   return list
            ? cons(fn(head(list)), map(fn,tail(list)))
            : emptyList
            ;
}
function map ( fn , list ) { return list ? cons ( fn ( head ( list ) ) , map ( fn , tail ( list ) ) ) : emptyList ; }
Map a function over a list
Map a function over a list
Map a function to a list of items