diff --git a/dev/news/index.html b/dev/news/index.html index a635721d..4d522d4d 100644 --- a/dev/news/index.html +++ b/dev/news/index.html @@ -46,7 +46,8 @@
imap_vec()
(#1084)list_transpose()
inspects all elements to determine the correct template if it’s not provided by the user (#1128, @krlmlr).as_mapper(\(x) x + 1)
#> \(x) x + 1
-#> <environment: 0x5568268b3370>
+#> <environment: 0x55cc9f8e5250>
as_mapper(1)
#> function (x, ...)
#> pluck_raw(x, list(1), .default = NULL)
-#> <environment: 0x5568308cb600>
+#> <environment: 0x55cc9d436e60>
as_mapper(c("a", "b", "c"))
#> function (x, ...)
#> pluck_raw(x, list("a", "b", "c"), .default = NULL)
-#> <environment: 0x5568308477b8>
+#> <environment: 0x55cc9d5f7760>
# Equivalent to function(x) x[["a"]][["b"]][["c"]]
as_mapper(list(1, "a", 2))
#> function (x, ...)
#> pluck_raw(x, list(1, "a", 2), .default = NULL)
-#> <environment: 0x55682ff5fec8>
+#> <environment: 0x55cc9fb12348>
# Equivalent to function(x) x[[1]][["a"]][[2]]
as_mapper(list(1, attr_getter("a")))
#> function (x, ...)
#> pluck_raw(x, list(1, function (x)
#> attr(x, attr, exact = TRUE)), .default = NULL)
-#> <environment: 0x55682e090c08>
+#> <environment: 0x55cc9f14bdf0>
# Equivalent to function(x) attr(x[[1]], "a")
as_mapper(c("a", "b", "c"), .default = NA)
#> function (x, ...)
#> pluck_raw(x, list("a", "b", "c"), .default = NA)
-#> <environment: 0x55682fe26010>
+#> <environment: 0x55cca0a4fed8>