New map functions and idLens

Longer term might want to consider where these functions for map, etc. end up.