.flatMap</span> (fun <span class='pattern-ident' data-type="int">x</span>  -&gt; <span class='ident' data-type="int => Belt.Result.t(int, 'a)">Result.return</span> (<span class='ident' data-type="int">x</span> <span class='operator' data-type="(int, int) => int">+</span> <span class='int' data-type="int">2</span>))))
    <span class='operator' data-type="(
  Belt.Result.t(int, 'a),
  Belt.Result.t(int, 'a) => int
) => int">|&gt;</span> (<span class='ident' data-type="(int, Belt.Result.t(int, 'a)) => int">Re