Dnd-character: missing imports

While doing this exercise, I was surprised to see “no property” errors for iota and canFind. I didn’t use them in my code, and discovered their use in the tests.

I think students don’t need to be bothered about this. I suggest

import std.range : iota;
import std.algorithm : canFind;

be added to the specific test where they are used.

I’d like to submit a PR for this, if maintainers agree.

1 Like

Please go ahead.

https://github.com/exercism/d/pull/290

1 Like