partial application using bind
implemented map with reduce