Syntax Lookup

Enter some language construct you want to know more about.
This is the module keyword.

module is used to define a scoped block of code that may contain types, let bindings, nested modules, etc.

Example

ReScriptJS Output
module Point3D = {
  type point = (float, float, float)
  let make = (x, y, z) => (x, y, z)
}

let origin = Point3D.make(0.0, 0.0, 0.0)

References