Diffing.Define.Parameters(3)

okay so welcome to Diffing.Define.Parameters(3) from the OCaml library, bestie 💖 this page is short and iconic, and we’re gonna read it together, no cap.

🎀 NAME 🎀

Diffing.Define.Parameters — no description. That’s literally it. The description is “no description” 😭💀.

🦋 Module type 🦋

The module type is Diffing.Define.Parameters. Yes bestie, that’s the name at the top of the page.

✨ Documentation ✨

Here’s the module type Parameters, and it is literally:

Module type Parameters
 = sig end

Then we have type update_result, followed by the three values. Let’s go 💅

  • type update_result — this type shows up in the update result, and the page doesn’t give it a separate description.
  • val weight : Diffing.Define.change -> int — weight ch returns the weight of the change ch. Used to find the smallest patch. smallest patch energy, periodt ✨
  • val test : D.state -> D.left -> D.right -> (D.eq, D.diff) result — test st xl xr tests if the elements xl and xr are compatible (Ok) or not (Error). vibe check: Ok or Error 🫶
  • val update : Diffing.Define.change -> D.state -> update_result — update ch st returns the new state after applying a change. The update_result type also contains expansions in the variadic case. variadic expansions stay in the chat, iykyk 🌈

kisses bestie, bye — this page was brought to you by OCamldoc, dated 2026-06-22 💖🎀

📦 where this page comes from