Module lines::linemapper [] [src]

Implements line-by-line iteration over a given reader by mapping a user defined function over each line.

Functions

count_lines

Counts the number of lines in the given reader by utilizing map_lines.

map_lines

Maps the given function f over lines read from r until either the function returns false, the end of stream is encountered, or the underlying reader returns an error.