<html><head></head><body>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.<br><br><div class="gmail_quote">On 10 December 2021 11:06:21 WET, IGotD- via Digitalmars-d-learn <digitalmars-d-learn@puremagic.com> wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre dir="auto" class="k9mail">On Friday, 10 December 2021 at 06:24:27 UTC, Rumbu wrote:<br><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;"><br>Since it seems there is a contest here:<br><br>```d<br>"abc;def;ghi".split(';').join();<br>```<br><br>:)<br></blockquote><br>Would that become two for loops or not?<br></pre></blockquote></div></body></html>