BSearchFn
functor
functor BSearchFn
(MONO_ARRAY) : sig ... end
The BSearchFn functor implements binary searching on sorted monomorphic arrays.
structure A : MONO_ARRAY
val bsearch : (('a * A.elem) -> order) -> ('a * A.array) -> (int * A.elem) option
bsearch cmp (a, arr)
If the search is successful, the element and its index are returned; otherwise; NONE is returned.
ArrayQSortFn, ArrayQSort
Last Modified June 9, 1998
Comments to John Reppy
Copyright © 1998 Bell Labs, Lucent Technologies