Thanks!
Just a clarification, why your codes have the brackets around the y loop, and
not around the result.add?
cross(xs, ys: string): seq[string] =
for x in xs: (for y in ys: result.add x & y)
Run
While @trtt has it around the result.add?
cross(a, b: string): seq[string] =
for ac in a:
for bc in b:
result.add(ac & bc)
Run
This is some of the syntax that confuse me.
