Q1. Given f:{1_x, y}; x:0 0 0; y:1 6 21 56, f[x;y] works in the following way:
- Iteration1: res1=f[x;y[0]]
- Iteration2: res2=f[res1;y[1]]
- Iteration3: res3=f[res2;y[2]]
- …
Q2. Used in this way scan terminates once it has processed y entirely. If you use it for instance in its monadic version, it terminates when two consecutive iterations produce the same result.
Q1. Given f:{1_x, y}; x:0 0 0; y:1 6 21 56, f[x;y] works in the following way:
- Iteration1: res1=f[x;y[0]]
- Iteration2: res2=f[res1;y[1]]
- Iteration3: res3=f[res2;y[2]]
- …
Q2. Used in this way scan terminates once it has processed y entirely. If you use it for instance in its monadic version, it terminates when two consecutive iterations produce the same result.