Syntax Lookup

Enter some language construct you want to know more about.
This is the private let binding extension point.

%%private is used to make let bindings private.

ReScriptJS Output
module Calc = {
  %%private(let mult = (x, y) => x * y)

  let double = x => mult(x, 2)
  let triple = x => mult(x, 3)
}

References