University of Alabama
Department of Computer Science
superior person1 person2that returns true if
person1has a higher rank than
person2, where the relationship is King Peer Knight Peasant. The type of
person * person -> bool. 2. Write an ML function
rank personthat maps
personsto integers, mapping Kings to 4, Peers to 3, Knights to 2, and Peasants to 1. Use this function to reimplement
superior. The new function should be
nsuperior person1 person2. 3. Modify type
personto add the constructor
Esquire, whose arguments are a name and a village (both represented by strings). Modify function
titleto generate, for instance,
"John Smith, Esq., of Bottisham". Modify
esquire. to mailto:email@example.com?subject=CS603MP3jones@cs.ua.edu with a subject line of
CS603MP3. If it all possible, try to send this from the email account you placed on the index card. In any case, be sure that your name is included in both program source files and in the body of your email message.
This document was generated using the LaTeX2HTML translator Version 2K.1beta (1.61)
Copyright © 1993, 1994, 1995, 1996,
Computer Based Learning Unit, University of Leeds.
Copyright © 1997, 1998, 1999, Ross Moore, Mathematics Department, Macquarie University, Sydney.
The command line arguments were:
latex2html -split 0 -nonavigation MP3.tex
The translation was initiated by on 2003-03-19