On Tuesday, 13 September 2022 at 07:25:18 UTC, SDB@79 wrote:

Is it the same with the new D versions?

Now I replaced the cycle() to the leftward and tried it with the current version. It works great!

```d
0.iota!double(1,.1).cycle.cached.take(30).writeln;

// [0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]
```

Surely it's a useless implementation for cycle() I guess?

SDB@79

Reply via email to