preceding function
preceding(T)
Takes an argument T that is a member of an enumerated type, and returns the previous member of the enumerated type.
Input: enumerated type member, or array of enumerated type members
Result: enumerated type member, or array of enumerated type members
Examples:
If enumerated type "fruit" is defined as "apple", "grape", "banana":
preceding("grape") --> "apple"