std.algorithm.strip functionality

Pete Padil padil at gm.com
Wed May 7 01:52:16 UTC 2025


On Wednesday, 7 May 2025 at 01:40:33 UTC, Jonathan M Davis wrote:
> On Tuesday, May 6, 2025 3:19:29 PM Mountain Daylight Time Pete 
> Padil via Digitalmars-d-learn wrote:
>> [...]
>
> strip removes the requested elements from the ends (whereas 
> stripLeft does it from the front of the range, and stripRight 
> does it from the back of the range). It's a generalization of 
> the strip function which strips whitespace from both ends (what 
> some languages call trim).
>
> [...]

Thank you for the replies. They help me discover library features 
I haven't used before.


More information about the Digitalmars-d-learn mailing list