EE
Size: a a a
AD
У
type Liquid = {
name: string
}
type Bottle = {
capacity: double
liquid: Liquid
}
let main =
let bottleWithFreshWater = { capacity = 1000.0; liquid = { name = "fresh water"} }
let bottleWithDirtyWater = { bottleWithFreshWater with liquid = { bottleWithFreshWater.liquid with name = "dirty water "} }
printf "%s" (bottleWithDirtyWater.liquid.name)
У
EE
У
У
EE
У
EE
SI
SI
SI
AD
SI