Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
6
Task/Enumerations/Oz/enumerations-1.oz
Normal file
6
Task/Enumerations/Oz/enumerations-1.oz
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
declare
|
||||
fun {IsFruit A}
|
||||
{Member A [apple banana cherry]}
|
||||
end
|
||||
in
|
||||
{Show {IsFruit banana}}
|
||||
4
Task/Enumerations/Oz/enumerations-2.oz
Normal file
4
Task/Enumerations/Oz/enumerations-2.oz
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
declare
|
||||
Apple = 1
|
||||
Banana = 2
|
||||
Cherry = 3
|
||||
8
Task/Enumerations/Oz/enumerations-3.oz
Normal file
8
Task/Enumerations/Oz/enumerations-3.oz
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
declare
|
||||
proc {Enumeration Xs}
|
||||
Xs = {List.number 1 {Length Xs} 1}
|
||||
end
|
||||
|
||||
[Apple Banana Cherry] = {Enumeration}
|
||||
in
|
||||
{Show Cherry}
|
||||
Loading…
Add table
Add a link
Reference in a new issue