The Global namespace

Refer to it with the keyword `global`

Can be useful when needing to define types in an associated module but don't want a top-level namespace. However, it's recommended to define a top-level namespace to avoid naming conflicts with other libraries.

 1: 
 2: 
 3: 
 4: 
 5: 
 6: 
 7: 
 8: 
 9: 
10: 
11: 
12: 
13: 
14: 
15: 
namespace global

type Vector = {
  x: float
  y: float
  z: float
}

module Vector =
  let add a b =
    {
      x = a.x + b.x
      y = a.y + b.y
      z = a.z + b.z
    }