Our structs.ps example demonstrates how to work with records in the PureScript programming language.
PureScript’s Record types are type-safe collections of fields, which are useful for grouping data together to form records. Here’s the full source code in PureScript:
When running this PureScript program, you will see the following output:
Now that you can work with records in PureScript, let’s learn more about the language.