Jump to content

Enumerations: Difference between revisions

no edit summary
No edit summary
Line 678:
=={{header|Haskell}}==
<lang haskell>data Fruit = Apple | Banana | Cherry deriving Enum</lang>
 
=={{header|Huginn}}==
<lang haskell>
enum FRUIT {
APPLE,
BANANA,
CHERRY
}
</lang>
 
=={{header|Inform 7}}==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.