Add map() and flatmap()

As discussed in #11.
Oh, *facepalm*, x vs. [x].