Logo

Programming-Idioms

This language bar is your friend. Select your favorite languages!

Idiom #122 Declare an enumeration

Create an enumerated type Suit with 4 possible values SPADES, HEARTS, DIAMONDS, CLUBS.

type Suit is (Spades, Hearts, Diamonds, Clubs);

New implementation...
< >
programming-idioms.org