matryoshka
Repeatedly applies the function to the result as long as it returns Some. Finally returns the last non-None value (which may be the initial input).
Repeatedly applies the function to the result as long as it returns Some. Finally returns the last non-None value (which may be the initial input).