Closed hadley closed 1 year ago
library(purrr) x3 <- list(a = 1, b = 2) x3 |> modify_at("b", \(x) zap()) |> str() #> List of 2 #> $ a: num 1 #> $ b: list() #> ..- attr(*, "class")= chr "rlang_zap"
Created on 2022-11-15 with reprex v2.0.2 should error?
Error should say something about length preserving invariant.
Created on 2022-11-15 with reprex v2.0.2 should error?