Skip to content

Instantly share code, notes, and snippets.

@kunishi
Created January 29, 2014 09:56
Show Gist options
  • Save kunishi/8684875 to your computer and use it in GitHub Desktop.
Save kunishi/8684875 to your computer and use it in GitHub Desktop.
exception NotFound;
fun getID(person, nil) = raise NotFound
| getID(person, (x as {name=p, ...})::xs) =
if p = person then
#ID(x:{name:string, ID:int, courses:string list})
else getID(person, xs);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment