OCaml by Example?

Read carefully what you are quoting. It’s not the fact that you are returning tuples from functions that is problematic it’s the fact that you pattern match on them.