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
The page says "any number of other arguments passed to the inner function", but function captures are used for "creating anonymous functions that take one argument". It took me a bit of time to realize the "any number" meant you could provide any number of other arguments passed statically to the inner function.
As I'm still learning the language I'm not sure if the term "statically" is correct, but the lack of specificity at least threw me initially.
The text was updated successfully, but these errors were encountered:
brettcannon
added a commit
to brettcannon/language-tour
that referenced
this issue
Mar 14, 2024
The page says "any number of other arguments passed to the inner function", but function captures are used for "creating anonymous functions that take one argument". It took me a bit of time to realize the "any number" meant you could provide any number of other arguments passed statically to the inner function.
As I'm still learning the language I'm not sure if the term "statically" is correct, but the lack of specificity at least threw me initially.
The text was updated successfully, but these errors were encountered: