For example:
{| YValues |
YValues := EventVariable new size: 256.
(!PenDown
true: ((YValues @< ((!PenX * 256) rounded)) <+ !y)
false: (nil)).
YValues asArray}
Gives me "error furing literal iteration".
From my understanding this is because the output is 256 iterations of the very same EventVariable. Allthough the EventVariable is in fact an array it seems I can't access it that way. Of course I could use something like
YValuesArray := ((0 to: 256) collect: [ :i | (YValues @< i)]).
YValuesArray asArray}
but I guess there must be a better way to do that?
Thanks!