10.4 Fundamentals - Environment
- Environment when function is created defines arguments in the function
- Use
env_print(fun)
andfn_env()
to explore
env_print(square)
#> <environment: 0x557c31362060>
#> Parent: <environment: global>
#> Bindings:
#> • exp: <lazy>
fn_env(square)$exp
#> [1] 2

Blue indicates environment, arrows bindings