The script below triggers the error Cannot recognize the token a
. How to modify this script?
a = `a`b`c
each(i -> each(add{i,}, a), 1..10)
The script below triggers the error Cannot recognize the token a
. How to modify this script?
a = `a`b`c
each(i -> each(add{i,}, a), 1..10)
Copyright © 2021 Jogjafile Inc.
In your script, the function
each(add{i,}, a)
references the external variable a, which is not an input parameter. Since a function cannot reference external variables, an error is triggered. You can modify the script as follows: