On Friday, 2 April 2021 at 05:39:26 UTC, mw wrote:
Finally, I'm using:https://run.dlang.io/is/651lT6 string t = text("head-", s[].until('\0').array, "-tail");
FYI, you don't need the call to `.array` there--`text` accepts input ranges.
Paul Backus via Digitalmars-d-learn Fri, 02 Apr 2021 07:30:36 -0700
On Friday, 2 April 2021 at 05:39:26 UTC, mw wrote:
Finally, I'm using:https://run.dlang.io/is/651lT6 string t = text("head-", s[].until('\0').array, "-tail");
FYI, you don't need the call to `.array` there--`text` accepts input ranges.