CDuce/Types/Records

From Wikibooks, open books for an open world
< CDuce‎ | Types
Jump to navigation Jump to search

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;;