Result.Syntax(3)

Result.Syntax(3) πŸ¦‹

Okay bestie, this is the Result.Syntax page from the OCaml library, and it’s literally all about binding operators. Let’s get into it πŸ’…βœ¨


πŸ’– NAME πŸ’–

Result.Syntax β€” Binding operators.

🌸 Module 🌸

Module Result.Syntax

✨ Documentation ✨

Module Syntax
 : sig end

Binding operators. See manual section 12.23 for details.

Since 5.4 πŸ‘‘


Here are the vals, bestie β€” signatures stay exactly as written, no cap:

  • val ( let* ) : ('a, 'e) result -> ('a -> ('b, 'e) result) -> ('b, 'e) result β€” ( let* ) is Result.bind.
  • val ( and* ) : ('a, 'e) result -> ('b, 'e) result -> ('a * 'b, 'e) result β€” ( and* ) is Result.product.
  • val let+ : ('a, 'e) result -> ('a -> 'b) -> ('b, 'e) result β€” ( let+ ) is Result.map.
  • val and+ : ('a, 'e) result -> ('b, 'e) result -> ('a * 'b, 'e) result β€” ( and+ ) is Result.product.

That’s the whole page, gorgeous πŸ«ΆπŸ’– β€” brought to you by OCamldoc, dated 2026-06-22. Slay and bye πŸ’…πŸŽ€

πŸ“¦ where this page comes from