Allows a function taking zero arguments to be passed to `r.map`
Fixes review feedback