map and curry examples