Ast_helper.Vb(3)

✨ NAME ✨

Ast_helper.Vb β€” value bindings, bestie! Value bindings is literally the whole vibe. This page is from the OCaml library manual, and the page title is Ast_helper.Vb(3).

πŸ¦‹ Module πŸ¦‹

Module Ast_helper.Vb

πŸ’– Documentation πŸ’–

okay so under documentation we have the module and the function, and it’s giving very short-and-slay.

🌸 Module Vb 🌸

The module is called Vb, and its signature is exactly this:

Module Vb
 : sig end

that’s it. that’s the whole sig. no cap. πŸ’€

πŸŽ€ Value bindings πŸŽ€

This section is about value bindings, and there is exactly one function here: mk. Here’s the signature, character for character, no edits, no β€œfixing”:

val mk : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs ->
         ?docs:Docstrings.docs -> ?text:Docstrings.text ->
         ?value_constraint:Parsetree.value_constraint -> Parsetree.pattern ->
         Parsetree.expression -> Parsetree.value_binding

The optional args are:

  • ?loc:Ast_helper.loc
  • ?attrs:Ast_helper.attrs
  • ?docs:Docstrings.docs
  • ?text:Docstrings.text
  • ?value_constraint:Parsetree.value_constraint

Then the required ones are Parsetree.pattern and Parsetree.expression, and it returns a Parsetree.value_binding. periodt. πŸ’…


This iconic little page was served to you by OCamldoc, dated 2026-06-22, with full OCaml library energy. 🫢✨

πŸ“¦ where this page comes from