Jump to content

CDuce/Types/Records

From Wikibooks, open books for an open world

type T = { a=Int b=Char c=?Char}

let x : T = { b='2' a=1 c='3' }
let y : T = { a=1 b='2'}
y.a;;
x.c;;