Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
val create : int -> 'a t
create n
creates a 'a Top_keeper.t
that will keep up to n
best scoring elements
add elt score t
add elt
with score
to the top_keeper t
(if the score is good enough or if the top_keeper doesn't hold enough elements yet)
val high_scores_first : 'a t -> (float * 'a) list
high_scores_first t
retrieves the n
best scores from t
(with associated elements)