You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think at_depth used to not give this error in this same context. I feel that modify_depth is working exactly as intended, but it is still confusing that it should be so easy to construct a case that explicitly contradicts the documentation for the modify_depth documentation. Maybe map shouldn't work on vectors as well?
The text was updated successfully, but these errors were encountered:
mir-cat
changed the title
modify_depth(x, 2, fun) is not equivalent to x[] <- map(x, ~ map(., fun)) when there is a vector in the list
modify_depth(x, 2, fun) is not equivalent to x[] <- map(x, ~ map(., fun)) when deepest level is a vector
Feb 5, 2018
Example:
I think
at_depth
used to not give this error in this same context. I feel thatmodify_depth
is working exactly as intended, but it is still confusing that it should be so easy to construct a case that explicitly contradicts the documentation for themodify_depth
documentation. Maybemap
shouldn't work on vectors as well?The text was updated successfully, but these errors were encountered: