POSITION:028,114
COLOUR:EUPHORIA
TEXT:00,sequence days_of_months
TEXT:16,atom no_leap_february, leap_february
TEXT:32,days_of_months = {31,{28,29},31,30,31,30,31,31,30,31,30,31}
TEXT:16,no_leap_february = days_of_months[2][1]
TEXT:16,leap_february = days_of_months[2][2]
COLOUR:STANDARD
TEXT:32,This program example extracts the number of days in February in both a
TEXT:16,leap year and non-leap year situation. Look at the second element of the
TEXT:16,sequence value stored in variable "days_of_months". It is itself a
TEXT:16,sequence two elements long. The atom variable "no_leap_february" is
TEXT:16,assigned the value of 28, the first element that makes up the sequence
TEXT:16,that is the second element of "days_of_months" ([2][1]), while atom
TEXT:16,variable "leap_february" is assigned 29, the second element that makes
TEXT:16,up the second element of "days_of_months" ([2][2]). Notice the indexes
TEXT:16,are in order of descending level, giving it a reversed appearance.

