A pass() identity range?
snarwin at gmail.com
Thu Dec 2 14:47:17 UTC 2021
On Thursday, 2 December 2021 at 11:35:53 UTC, D Lark wrote:
> I am a newcomer to D and I am looking for equivalent
> functionality in phobos (so far I have not found).
The function you are looking for is [`std.range.tee`].
It was added to Phobos in 2014 by [pull request #1965],
approximately one year after the post you replied to.
This is why it's generally frowned upon to revive old threads:
the information they contain is often out of date, and
potentially misleading to anyone who reads them without looking
carefully at the timestamps.
More information about the Digitalmars-d-learn