Am 15.12.2017 um 17:49 schrieb Schaff, Frederik:
why are those not equivalent? I.e., the foreach (which is more
concise)
does not work as (I) expected.
As always, please define "as expected". And what are you getting instead?
loop for s=1..nelem(ls)
BTW, this syntax is not optimal (even though it's tolerated) -- for the
simplest index loop omit the "for": loop s=1..nelem(ls) will do.
cheers,
sven