If there is actually a variable . in the caller's environment, the user probably indends to evaluate it, not to create a functional sequence.
library(magrittr)
purrr::map(1:3, ~ . %>% sqrt)
#> [[1]]
#> Functional sequence with the following components:
#>
#> 1. sqrt(.)
#>
#> Use 'functions' to extract the individual functions.
#>
#> [[2]]
#> Functional sequence with the following components:
#>
#> 1. sqrt(.)
#>
#> Use 'functions' to extract the individual functions.
#>
#> [[3]]
#> Functional sequence with the following components:
#>
#> 1. sqrt(.)
#>
#> Use 'functions' to extract the individual functions.
c.f. https://twitter.com/yutannihilat_en/status/1075758245048836096
If there is actually a variable
.
in the caller's environment, the user probably indends to evaluate it, not to create a functional sequence.Created on 2018-12-21 by the reprex package (v0.2.1)