If I have defined the following types:
type category = Noun | Verb | Adjective | Preposition;;
type transformation = {start: category; fin: category};;
What is the best way to answer the question "is the record where start = Noun
in the list of type transformation?
Sort of like
let un = [{start= Noun; fin= Noun}; {start= Verb; fin= Adjective}];;
List.mem {start = Noun; _} un;;
Except that syntax doesn't seem to work.