Again, please bear with me if the answer to this is obvious…
Is it possible to create a list of lists automatically? Something like this:
set the_big_list to {}
repeat with j from 1 to 6 by 3
set the_list to {}
repeat with i from j to (j + 2)
set the_list to (the_list & i)
end repeat
set the_big_list to (the_big_list & the_list)
end repeat
This snippet produces {1,2,3,4,5,6}, because “&” merges the_list into the_big_list. I’d like to get {{1,2,3},{3,4,5}}, but I can’t figure out how. From reading the Language Guide, it seems to me that it can’t be done, because there’s no operator that joins lists like that. Am I wrong?