Enumerations: Difference between revisions
m
→{{header|J}}
m (→{{header|Diego}}: Added `flag` enumeration) |
m (→{{header|J}}) |
||
Line 986:
+------+</lang>
And, you can iterate over the values
apple
banana
cherry</lang>
(A person could reasonably argue that enums were introduced in some languages to work around deficiencies in array handling in those languages. But this would be a part of a larger discussion about type systems and the use of systems of bit patterns to represent information.)
=={{header|Java}}==
|