RosettaCodeData/Task/Enumerations/E/enumerations-3.e

5 lines
169 B
Text
Raw Permalink Normal View History

2013-04-10 16:57:12 -07:00
def [Fruit, [=> apple, => banana, => cherry]] := makeEnumeration()
def [Fruit, [=> apple, => banana, => cherry]] :=
makeEnumeration(0, ["apple", "banana", "cherry"])