Yes it will. You can use lazy templates instead, like splitter and joiner, which splits and joins lazily, respectively. LDC can optimize those templates fairly well and avoid too much lazy calls and pretty much constructs the logic equivalent to for loop.
On 10 December 2021 11:06:21 WET, IGotD- via Digitalmars-d-learn <digitalmars-d-learn@puremagic.com> wrote:
On Friday, 10 December 2021 at 06:24:27 UTC, Rumbu wrote: