Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Source file set.ml
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133(*****************************************************************************)(* *)(* Open Source License *)(* Copyright (c) 2020 Nomadic Labs <contact@nomadic-labs.com> *)(* *)(* Permission is hereby granted, free of charge, to any person obtaining a *)(* copy of this software and associated documentation files (the "Software"),*)(* to deal in the Software without restriction, including without limitation *)(* the rights to use, copy, modify, merge, publish, distribute, sublicense, *)(* and/or sell copies of the Software, and to permit persons to whom the *)(* Software is furnished to do so, subject to the following conditions: *)(* *)(* The above copyright notice and this permission notice shall be included *)(* in all copies or substantial portions of the Software. *)(* *)(* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR*)(* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *)(* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL *)(* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER*)(* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING *)(* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER *)(* DEALINGS IN THE SOFTWARE. *)(* *)(*****************************************************************************)(** Sets with the signature [S] are exception-safe replacements for
sets with the {!Stdlib.Set.S} signature with Lwt- and result-aware
traversal functions.
See {!Lwtreslib}'s introductory documentation for explanations regarding
[_e]-, [_s]-, [_es]-, [_p]-, and [_ep]-suffixed functions and exception
safety. See {!Stdlib.Set.S} for explanations regarding OCaml's
sets in general. *)moduletypeS=sigtypeelttypetmoduleLegacy:Stdlib.Set.Swithtypeelt=eltandtypet=tvalempty:tvalis_empty:t->boolvalmem:elt->t->boolvaladd:elt->t->tvalsingleton:elt->tvalremove:elt->t->tvalunion:t->t->tvalinter:t->t->tvaldisjoint:t->t->boolvaldiff:t->t->tvalcompare:t->t->intvalequal:t->t->boolvalsubset:t->t->boolvaliter:(elt->unit)->t->unitvaliter_e:(elt->(unit,'trace)result)->t->(unit,'trace)resultvaliter_s:(elt->unitLwt.t)->t->unitLwt.tvaliter_p:(elt->unitLwt.t)->t->unitLwt.tvaliter_es:(elt->(unit,'trace)resultLwt.t)->t->(unit,'trace)resultLwt.tvaliter_ep:(elt->(unit,'error)resultLwt.t)->t->(unit,'errorlist)resultLwt.tvalmap:(elt->elt)->t->tvalfold:(elt->'a->'a)->t->'a->'avalfold_e:(elt->'a->('a,'trace)result)->t->'a->('a,'trace)resultvalfold_s:(elt->'a->'aLwt.t)->t->'a->'aLwt.tvalfold_es:(elt->'a->('a,'trace)resultLwt.t)->t->'a->('a,'trace)resultLwt.tvalfor_all:(elt->bool)->t->boolvalexists:(elt->bool)->t->boolvalfilter:(elt->bool)->t->tvalpartition:(elt->bool)->t->t*tvalcardinal:t->intvalelements:t->eltlistvalmin_elt:t->eltoptionvalmax_elt:t->eltoptionvalchoose:t->eltoptionvalsplit:elt->t->t*bool*tvalfind:elt->t->eltoptionvalfind_first:(elt->bool)->t->eltoptionvalfind_last:(elt->bool)->t->eltoptionvalof_list:eltlist->tvalto_seq_from:elt->t->eltStdlib.Seq.tvalto_seq:t->eltStdlib.Seq.tvaladd_seq:eltStdlib.Seq.t->t->tvalof_seq:eltStdlib.Seq.t->tend