📄 readme
字号:
EXAMPLE 2: SUBTYPESThis example program shows how values of domain typesmay be used like objects.The "->" notation can be used to access and update their fields.Subtypes allow to manipulate the fields in type-safe wayoutside of match statements.The example uses the Tree type from Example 1 and gives functions toupdate the fields of a node.Note that the possibility to update fields introduces the fullpower of general graph structures.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -