Fast map implementation for R
