This method can be pronounced as "tee" as it's like a tee in a pipe. The input and the output are identical (so it's like identity) but it has a side-effect: the function f is invoked on the matched value of r (assuming that it is a Match, otherwise f is not invoked).
This method can be pronounced as "tee" as it's like a tee in a pipe. The input and the output are identical (so it's like identity) but it has a side-effect: the function f is invoked on the matched value of r (assuming that it is a Match, otherwise f is not invoked).
This method can also be pronounced as "tee" as it's like a tee in a pipe. The input and the output are identical (so it's like identity) but it has a side-effect: the function f is invoked on the matched value of r, while, otherwise, the function g is invoked on the String representation of the MatchResult (a Miss or Error).
This method can also be pronounced as "tee" as it's like a tee in a pipe. The input and the output are identical (so it's like identity) but it has a side-effect: the function f is invoked on the matched value of r, while, otherwise, the function g is invoked on the String representation of the MatchResult (a Miss or Error).