Replies: 1 comment 2 replies
-
This is fine because |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I have a small doubt regarding part of my code when I re-read the documentation for lax.scan. To give an example I often write code that looks like this:
i.e. the body of the scanned-over function depends on the parameter of the outer function. Now I read that "scan compiles f" so how come I don't have any problems with the fact that f captures a "global" parameter (i.e. outside of its scope ?). Is it that whenever I call g with a new argument then f is recompiled, because f is a functional attribute of g ? Then what happens if I compile the outer function (g) ? I haven't had any numerical surprises so far but I just want to check that I'm not missing anything.
Beta Was this translation helpful? Give feedback.
All reactions