adamc@15: val id = fn t :: Type => fn x : t => x adamc@15: val id_self = id [t :: Type -> t -> t] id adamc@15: adamc@15: val idi = fn t ::: Type => fn x : t => x adamc@15: val idi_self = idi idi adamc@17: adamc@17: val picker = fn na :: Name => fn a ::: Type => fn nb :: Name => fn b ::: Type => fn fs ::: {Type} => adamc@17: fn r : $([na = a, nb = b] ++ fs) => {na = r.na, nb = r.nb} adamc@17: val getem = picker [#A] [#C] {A = 0, B = 1.0, C = "hi", D = {}} adamc@18: val getem2 = picker [#A] [_] {A = 0, B = 1.0, C = "hi", D = {}} adamc@18: val getem3 = picker [#A] [_::Name] {A = 0, B = 1.0, C = "hi", D = {}} adamc@17: adamc@17: val picker_ohmy = fn na ::: Name => fn a ::: Type => fn nb ::: Name => fn b ::: Type => fn fs ::: {Type} => adamc@17: fn r : $([na = a, nb = b] ++ fs) => {na = r.na, nb = r.nb} adamc@17: val getem_ohmy = picker_ohmy {A = 0, B = 1.0, C = "hi", D = {}}