digitalmars.D.learn - strip in stdin
- MGW (2/2) Dec 03 2020 string[] m = stdin.byLineCopy.array;
- Paul Backus (5/7) Dec 04 2020 To apply a function to each element of a range, use the `map`
string[] m = stdin.byLineCopy.array; How to make strip() for each line in an expression ...
Dec 03 2020
On Friday, 4 December 2020 at 06:51:32 UTC, MGW wrote:string[] m = stdin.byLineCopy.array; How to make strip() for each line in an expression ...To apply a function to each element of a range, use the `map` algorithm: import std.algorithm: map; string[] m = stdin.byLineCopy.map!strip.array;
Dec 04 2020