Anonymous user
Enumerations: Difference between revisions
no edit summary
No edit summary |
|||
Line 165:
enum fruits { apple = 0, banana = 1, cherry = 2 }
==[[Lisp]]==
[[Category:Lisp]]
(setf FRUIT '(apple banana cherry))
as lisp is a symbolic language assigning values to the symbols is unnecessary.
==[[Perl]]==
[[Category:Perl]]
|