April 12 [Issue 23755] array.until!pred should return an array | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=23755 Ate Eskola <Ajieskola@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |Ajieskola@gmail.com Resolution|--- |INVALID --- Comment #1 from Ate Eskola <Ajieskola@gmail.com> --- Nope. `until` is a lazy algorithm and it says it in it's documentation. To return an array, it would have to work eagerly and therefore break it's performance assumptions. You can get a slice without copying it with `findSplitBefore`. -- |
April 12 [Issue 23755] array.until!pred should return an array | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=23755 --- Comment #2 from FeepingCreature <default_357-line@yahoo.de> --- Oh yeah good point. -- |
Copyright © 1999-2021 by the D Language Foundation