Data update
This commit is contained in:
parent
8e4e15fa56
commit
72eb4943cb
1853 changed files with 35514 additions and 9441 deletions
|
|
@ -5,13 +5,13 @@ enum
|
|||
end
|
||||
type ExplicitFruits
|
||||
enum
|
||||
int APPLE = 10
|
||||
int BANANA = 20
|
||||
int CHERRY = 1
|
||||
int APPLE ← 10
|
||||
int BANANA ← 20
|
||||
int CHERRY ← 1
|
||||
end
|
||||
type Main
|
||||
for each generic enumeration in generic[Fruits, ExplicitFruits]
|
||||
writeLine("[" + Generic.name(enumeration) + "]")
|
||||
writeLine("[", Generic.name(enumeration), "]")
|
||||
writeLine("getting an object with value = 1:")
|
||||
writeLine(:enumeration.byValue(1))
|
||||
writeLine("iterating over the items:")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue