map, imap, filter functions
Merge pull request #174 from Rcpp11/functional

map, imap, filter functions