)">Belt.Result.Ok</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="(Belt.Result.t(int, 'a), int) => int">Belt.Result.getWithDefault</span>(<span class='pattern-ident' data-type="Belt.Result.t(int, 'a)"><span class='operator' data-type="Belt.Result.t(in