programlibs/Search/demos/exam.xtl
Exam results: the top three, everyone's rank (ties share it), the score at each grade boundary, and who scored between 60 and 79. Run with "just demo Search exam".
names : Box Char
names ← "Ada" "Ben" "Cy" "Dee" "Eve" "Fay" "Gus" "Hal" "Ivy" "Jo"
score : Int
score ← 72 88 65 88 91 54 79 65 70 83
grade : Char
grade ← (1 + 60 70 80 90 q:b̲search score) s̲elect "FDCBA"
Used in: libs/Search/demos/exam.xtl:16