vendredi 17 juillet 2020

How can I get two lists, each containing the names of the required and optional properties of an F# record?

I have an F# Record type

type MyType = {
  Name : string
  Description : string option
}

I'd like to get two arrays, one containing the names of the required properties and one containing the optional properties. How can I do this?





Aucun commentaire:

Enregistrer un commentaire