MatchTree
structure
signature MATCH_TREE
structure MatchTree
: MATCH_TREE
This structure implements the type used to report matching information and associated operations.
datatype 'a match_tree
= Match of ('a * 'a match_tree list)
val root : 'a match_tree -> 'a
val nth : ('a match_tree * int) -> 'a
val map : ('a -> 'b) -> 'a match_tree -> 'b match_tree
val app : ('a -> unit) -> 'a match_tree -> unit
val find : ('a -> bool) -> 'a match_tree -> 'a option
val num : 'a match_tree -> int
datatype 'a match_tree
root mt
nth (mt, n)
map f mt
app f mt
find f mt
NONE
).
num mt
Last Modified June 3, 1998
Comments to John Reppy
Copyright © 1998 Bell Labs, Lucent Technologies