How do I make custom data structure on top of Daml standard libraries?

Hi, I am trying to build a custom data structure using DA.Map, but I only see tutorial on Daml on just how to make a contract only. Is there any way I can make a custom daml data structure and make it into library?

Yes; I suggest starting with documentation of all Daml types. There are not many and they are all worth knowing about. The sections there on “Records” and “Variants” explain custom data types.

Records are also deeply related to templates.

1 Like