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
When called with more than three arguments, For and For scan both use the first argument as initial value, and the rest of the arguments as input arrays.
{x+y*z}/[1; 1 2 3; 4 5 6; 7 8 9]
29 42 57
{x+y*z}\[1; 1 2 3; 4 5 6; 7 8 9]
(1 2 3
4 5 6
7 8 9
29 42 57)
(The two examples are the same as those in the first adverbs chapter and don't make sense here. Also they don't produce the same results for me, so we should replace them in that chapter too.)
I'm not quite sure what's meant by calling For or For scan with more than three arguments. Giving it an array on the right-hand side just produces one column of results given each element as a starting value:
I think the part in the more adverbs chapter should be removed.
Giving it an array on the right-hand side just produces one column of results given each element as a starting value
The infix form of for takes two arguments (excluding the function {2*x} in the example). f/[...;...;...;] is the non-infix form that does a different thing.
I'm not sure what's meant by this bit in the More Adverbs chapter:
(The two examples are the same as those in the first adverbs chapter and don't make sense here. Also they don't produce the same results for me, so we should replace them in that chapter too.)
I'm not quite sure what's meant by calling For or For scan with more than three arguments. Giving it an array on the right-hand side just produces one column of results given each element as a starting value:
The text was updated successfully, but these errors were encountered: