> Seqs in nim have value type semantics. Your inner loop ( for d in Directions) > actually assigns Directions[...] to d on every iteration which involves full > copy of the seq.
How strange that it actually makes a new copy when mitems doesn't. What's the reason of this?
