ometa Repeat { repeat :n :rule = ?(n = 0) -> [] | ?(n > 0) apply(rule):x apply(repeat(n-1, rule)):xs -> { xs[xs.length] = x; xs }, a = 'a' Parse error Parse error Parse error Parse error Parse error Parse error Parse error Parse error Parse error -> -> -> -> -> -> -> -> ->, aaa = apply(repeat(3, a)) Parse error Parse error Parse error Parse error Parse error Parse error Parse error Parse error Parse error Parse error -> -> -> -> -> -> -> -> -> ->:xs -> xs.join() } Repeat.matchAll("aaaaaa", 'aaa')