adamc@993: open Versioned.Make(struct adamc@993: con key = [Id = int] adamc@993: con data = [Nam = string, ShoeSize = int] adamc@993: adamc@993: val key = {Id = _} adamc@993: val data = {Nam = {Inj = _, adamc@993: Eq = _}, adamc@993: ShoeSize = {Inj = _, adamc@993: Eq = _}} adamc@993: end) adamc@993: adamc@993: fun expandKey k = adamc@993: name <- source ""; adamc@993: shoeSize <- source ""; adamc@993: return {Key = k, Nam = name, ShoeSize = shoeSize} adamc@993: adamc@993: fun main () = adamc@993: ks0 <- keys; adamc@993: ks0 <- List.mapM (fn r => expandKey r.Id) ks0; adamc@993: ks <- source ks0; adamc@993: adamc@993: id <- source ""; adamc@993: name <- source ""; adamc@993: shoeSize <- source ""; adamc@993: adamc@993: return adamc@993:
adamc@993: {[kr.Key]}: adamc@993: adamc@993: adamc@993:
) ks)}/> adamc@993: adamc@993:

Add one:

adamc@993: adamc@993: adamc@993: adamc@993: adamc@993: adamc@993: adamc@993:
Id:
Name:
Shoe size:
adamc@993: