my-map without use of builtin apply