On Sunday, 10 March 2019 at 08:59:59 UTC, kerdemdemir wrote: > Can I avoid for loops and solve my problem with std algorithms > or ranges ? Try slide: https://dlang.org/phobos/std_range.html#slide And then use map.