Re: save() feature for iota

2022-11-04 Thread Imperatorn via Digitalmars-d-learn
On Friday, 4 November 2022 at 08:48:36 UTC, Salih Dincer wrote: On Thursday, 3 November 2022 at 11:58:20 UTC, Paul Backus wrote: On Thursday, 3 November 2022 at 06:26:22 UTC, Salih Dincer Looking at the source, it seems that only the numeric overloads of `iota` implement `save`. I think this is

Re: save() feature for iota

2022-11-04 Thread Salih Dincer via Digitalmars-d-learn
On Thursday, 3 November 2022 at 11:58:20 UTC, Paul Backus wrote: On Thursday, 3 November 2022 at 06:26:22 UTC, Salih Dincer Looking at the source, it seems that only the numeric overloads of `iota` implement `save`. I think this is probably just an oversight, though, since I can't see any reaso

Re: save() feature for iota

2022-11-03 Thread Ali Çehreli via Digitalmars-d-learn
On 11/3/22 04:58, Paul Backus wrote: > https://issues.dlang.org/show_bug.cgi?id=23453 Even though iterating over UTF value ranges don't make sense in general, they would work for some values including the ASCII range. Ali

Re: save() feature for iota

2022-11-03 Thread Paul Backus via Digitalmars-d-learn
On Thursday, 3 November 2022 at 06:26:22 UTC, Salih Dincer wrote: Hi All, Isn't there a save feature for `iota()`? Looking at the source, it seems that only the numeric overloads of `iota` implement `save`. I think this is probably just an oversight, though, since I can't see any

save() feature for iota

2022-11-02 Thread Salih Dincer via Digitalmars-d-learn
Hi All, Isn't there a save feature for `iota()`? ```d import std.stdio; import std.range; void main() { foreach(num; iota!char('a', 'f').chunks(3)/* "onetwosixfour".chunks(3)//*/ ) { //auto n = num.save();