Subject: RE: Problems concatenating two lists using @for.
Its ok thanks i figured it out, @for does a permutation concat…
You took the wrong lesson from this. @For doesn’t do any concatenation. @For repeats the enclosed statements until its condition is met. You did the concatenation with this expression:
tmp1:list1[n]+" "+list2[n]
What you’re missing is that, first, : is a higher precedence operator than +, and second, when you concatenate a list with a scalar, it adds the scalar to each element of the list. You would have to write the expression this way:
tmp1:(list1[n]+" "+list2[n])
Except, of course, that as someone else pointed out, all you have to do is + the lists together.