a = [1,2] b = [3,4,5] repeat with v in b a.append(v) end repeat put a -- [1, 2, 3, 4, 5]