Caml1999I031yx2Stdlib__MoreLabelsӠ'Hashtbl@!t8!a@C!b@B@B@A&Stdlib'Hashtbl!t@@@DOO@BB@@@.moreLabels.mlimm@@@@,@A@&create&random&optionJ$boolE@@@E@@@F@#intA@@@GD!a@I!b@H@@@J@@K@@L@1pDF2q@@\A@%clear@!a@N!b@M@@@O$unitF@@@P@@Q@OWPW@@zB@%reset@7!a@S!b@R@@@T@@@U@@V@k[PRl[Pp@@C@$copy@S!a@Y!b@X@@@W`  @@@Z@@[@`` @@D@#add@p!a@]!b@^@@@\#key$data _@@@_@@`@@a@@b@c;=c;n@@E@$find@!a@d!b@e@@@c@ @@f@@g@kk@@F@(find_opt@!a@i!b@j@@@h@ Ҡ @@@k@@l@@m@oVXoV@@G@(find_all@͠!a@o!b@p@@@n@ $listI @@@q@@r@@s@tt>@@1H@#mem@!a@v!b@t@@@u@  @@@w@@x@@y@$z %zB@@OI@&remove @ !a@|!b@z@@@{@ @@@}@@~@@@B}C}@@mJ@'replace!@*!a@!b@@@@#key$data @@@@@@@@@@f]_g]@@K@$iter"!f#key!a@$data!b@:@@@@@@@@f@@@E@@@@@@@@ @@L@2filter_map_inplace#!f#key!a@$data!b@@@@@@@@@@@@r@@@@@@@@}@@M@$fold$!f#key!a@$data!b@@!c@@@@@@@@@@@$init@@@@@@@NPN@@N@&length%@ՠ!a@!b@@@@@@@@@@ !*!, !*!J@@4O@)randomize&@@@@@@@@@@";"=";"Y@@GP@-is_randomized'@@@@@@@@@@/%%0%%@@ZQ@'rebuild(&random.+@@@@@@@#!a@!b@@@@0  @@@@@@@@X&I&KY&&@@R@*statistics)8@@,num_bindingso@I@@@j))k))@@T+num_bucketsp@U@@@v**w**&@@U1max_bucket_lengthq@a@@@*T*X*T*o@@V0bucket_histogramr@%arrayHs@@@@@@****@@W@@A'Hashtbl*statistics@@@@@@@)j)l+~+@@@@SA@%stats*@!a@!b@@@@^@@@@@@++++@@X@&to_seq+@!a@à!b@@@@#Seq!t@@@@@@@@,,,,@@ Y@+to_seq_keys,@ɠ!a@ɠ@@@@@#Seq!t@@@@@@.F.H.F.n@@*Z@-to_seq_values-@@̠!b@@@@$#Seq!t @@@@@@....@@G[@'add_seq.@!a@Ӡ!b@@@@@F#Seq!t@@@@@@@@@@@@@F//G//H@@q\@+replace_seq/@.!a@۠!b@@@@@p#Seq!t@@@@@#@@@@@@@@p//q//@@]@&of_seq0@#Seq!t!a@!b@@@@@@l  @@@@@@0"0$0"0N@@^@*HashedType1!t=8@@@A@@@@@G55G55@@@@_A@%equal>@@@@:@@@@;@@@<@@=@@>@J55J56@@`@$hash?@@@@?@@@@@@A@M6J6PM6J6c@@a@@@E55Z99%@b@!S2#key@8@@@A@@@@@_9v9|_9v9@@@@ cA@!tA8!a@@A@A@O@B@@@`99`99@@@@dA@&createB@@@@!a@@@@@@@ a99 a99@@5e@%clearC@!a@@@@@@@@@@!b99"b99@@Lf@%resetD@+!a@@@@@@@@@@8c999c99@@cg@$copyE@B!a@@@@J@@@@@@Oe: :Pe: :&@@zh@#addF@Y!a@@@@#key@@@$data%@@@@@@@@@@rf:':-sf:':Y@@i@&removeG@|!a@@@@@!@@@A@@@@@@@@g:Z:`g:Z:@@j@$findH@!a@@@@@=@@@ @@@@@h::h::@@k@(find_optI@!a@@@@@U@@@@@@@@@@@i::i::@@l@(find_allJ@͠!a@@@@@r@@@ܠ@@@@@@@@l::l:;@@ m@'replaceK@!a@@@@#key@@@$data@@@@@@@@@@m;; m;;P@@-n@#memL@ !a@@@@@@@@@@@@@@@@n;Q;Wn;Q;t@@Io@$iterM!f#key@@@$data!a@@@@@@@@@? @@@@@@@@@@@Ho;u;{Io;u;@@sp@2filter_map_inplaceN!f#key@@@$data!a@V@@@@@@@@j@@@&@@@@@@@@sp;;tq<<@@q@$foldO!f#key@@@$data!a@@!b@ @@@@@@@@@@$init@@ @@ @@ @t<+<1t<+&@@y@&of_seqW@#Seq!t#@@@4!a@7@@5@@@6@@@8@@9@>A>G>A>l@@z@@@]9\9^>>@{@Ӡ$Make3@!H<X8@@@A!t@@@.@@@@>>>? @@@@}A@Y8!a@/@A@A'Hashtbl$Make!t@@@0O@B@@@? ?? ?6@@@@~A@Z@@@@1%@2@@@3@@4@@@[@ @5@@@6@@@7@@8@@@\@@9@@@:@@@;@@<@@@]@(@>@@@=-@@@?@@@@@@^@7@C@@@Ar@@@B @@@D@@E@@F@@G@@@_@M@H@@@I@@@@J@@@K@@L@@M@@@`@`@P@@@N@)@@@O@@Q@@R@@@a@p@U@@@S@9@@@T @@@V@@W@@X@@@b@@[@@@Y@M@@@Z @@@\@@]@@^@@@c@@a@@@_a@@@` @@@b@@c@@d@@e@@@d@~@f@@@g@v@@@h{@@@i@@j@@k@z@w@veus@@@lqo@pl@@@m@@n@@o@͠ @@@qk@@@r@@s@@t@j@g@ffec@@@ua_@y\@@@v@@w@@x@ @@@z[@@@{@@|@@}@Z@W@VgUS@@@~QO@@L@@@@@@@@ @@@I  @@@@@@@G@D@Ch@B@@@@?@@@@@@>@;@:i@9@@@@F@@@@@@6@3@2j@*1@@@@.-@@@@@@@@@@@,@)@(k@B/@@@@5'&@@@@@@@@@%@"@!l@V @@@@I@@@@@@@@m@g@@@@@\8@@@@@@@@@@@@@@@@@ @ n@ @@@@@yU@@@@@@@@@@@@@@@@@@o@k@@@@@@@@@@@@@@@@@@@>>@@@0SeededHashedType4!tp8@@@A@@@@@AAAA@@@@@A@%equalq@@@@$@@@@%@@@&@@'@@(@ABAB@@A@$hashr@@@@)@@@@*@@@+@@,@@-@BZB`BZBy@@B@@@AACC@C@'SeededS5#keys8@@@A@@@@@D3D9D3DA@@@@ DA@!tt8!a@@A@A@O@B@@@DBDHDBDR@@@@ EA@&createu&random@@@@@@@@@@(!a@@@@@@@@@ DSDY DD@@ CF@%clearv@!a@@@@@@@@@@ /DD 0DD@@ ZG@%resetw@+!a@@@@@@@@@@ FDD GDD@@ qH@$copyx@B!a@@@@J@@@@@@ ]DD ^DE@@ I@#addy@Y!a@@@@#key@@@$data 3@@@@@@@@@@ EE EEH@@ J@&removez@|!a@@@@@!@@@ O@@@@@@@@ EIEO EIEo@@ K@$find{@!a@@@@@=@@@ @@@@@ EpEv EpE@@ L@(find_opt|@!a@@@@@U@@@ @@@@@@@@ EE EE@@ M@(find_all}@͠!a@@@@@r@@@@@@@@@@@ EE EF@@ N@'replace~@!a@@@@#key@@@$data @@@@@@@@@@ FF  FF9@@ ;O@#mem@ !a@@@@@@@@ @@@@@@@@ ,F:F@ -F:F]@@ WP@$iter!f#key@@@$data!a@ @@@@@@@@? @@@ @@@@@@@@ VF^Fd WF^F@@ Q@2filter_map_inplace!f#key@@@$data!a@ d@@@@@@@@j@@@ 4@@@@@@@@ FF FF@@ R@$fold!f#key@@@$data!a@@!b@@@@@@@@@@@$init@@@@@@@ GG GG`@@ S@&length@!a@@@@ @@@@@@ GaGg GaG@@ T@%stats@!a@@@@@@@@@@ GG GG@@ U@&to_seq@֠!a@@@@ #Seq!t@@@@@@@@@@@ GG GG@@ 'V@+to_seq_keys@@@@@ #Seq!t@@@@@@@@ @ GG GH@@ BW@-to_seq_values@!a@ @@@  :#Seq!t @@@ @@ @ 2H.H4 3H.HX@@ ]X@'add_seq@.!a@@@@@ W#Seq!t@@@@@@@@ @@@@@@@@ ZHsHy [HsH@@ Y@+replace_seq@V!a@@@@@ #Seq!t@@@@@@@@ 5@@@@@@@@ HH HH@@ Z@&of_seq@ #Seq!t#@@@!a@!@@@@@ @@@"@@#@ II II@@@ [@@@ DD IZIa@ \@Ӡ*MakeSeeded6@!H;"8@@@A!t@@@@@@@ II IJ@@@@ ^A@8!a@@A@A 'Hashtbl*MakeSeeded!t@@@O@B@@@ JJ  JJ1@@@@ _A@ ۠@@@@@@@@@@.@@@@@@@@@@@@ @@@@@@@@@@@@@@ @@@!@@@"@@#@@@@(@%@@@$-@@@&@@'@@@@7@*@@@({@@@) @@@+@@,@@-@@.@@@@M@/@@@0@@@@1@@@2@@3@@4@@@@`@7@@@5@)@@@6@@8@@9@@@@p@<@@@:@9@@@; @@@=@@>@@?@@@@@B@@@@@M@@@A @@@C@@D@@E@@@@@H@@@Fa@@@G @@@I@@J@@K@@L@@@@@M@@@N@v@@@O@@@P@@Q@@R@@@~|@@@Szx@Wu@@@T@@U@@V@͠ @@@Xt@@@Y@@Z@@[@s@p@onl@@@\jh@`e@@@]@@^@@_@ @@@ad@@@b@@c@@d@c@`@_^\@@@eZX@i@U@k@@f@@g@@h@ @@@jR  @@l@@m@@n@P@M@L@K@o@@@pH@@@q@@r@G@D@C@B@s@@@t ]@@@u@@v@?@<@;@*:@x@@@w 476@@@y@@z@@@{@@|@5@2@1@B F@}@@@~ L0/@@@@@@@@@.@+@*@V)@@@@ `&%@@@@@@$@!@ @g@@@@@ s8@@@@@@@@@@@@@@@@@@@@@@@@ U@@@@@@@@@@@@@@@@@ @ @  k@@@@@@@@@@@@@@@@@@@ II@ `@@$hash7@!a@ @@@@@@ MDMF MDMZ@@ a@+seeded_hash8@ @@@@!a@ @@@@@@@@ NUNW NUNy@@ b@*hash_param9@ @@@@ @@@@!a@ @@@@@@@@@@ NN NO @@c@1seeded_hash_param:@ @@@@ @@@@ @@@@!a@ @@@@@@@@@@@@ S]S_ S]S@@Bd@@@c,,TGTJ@Fe@@Ӡ#Map@+OrderedType!t8@@@A@@@@@16X}X26X}X@@@@\fA@'compare@@@@ @@@@(@@@@@@@@I9XXJ9XX@@tg@@@M4XYX[NAZZ@xh@!S#key8@@@A@@@@@]FZZ^FZ[@@@@iA@!t8!a@@A@A@I@B@@@mI[+[1nI[+[<@@@@jA@%empty!a@@@@@L[z[L[z[@@k@(is_empty@!a@@@@~@@@@@@O[[O[[@@l@#mem@J@@@@1!a@@@@@@@@@@@@R\\R\\"@@m@#add#key@@@$data!a@@W @@@[ @@@@@@@@@@V\\V\\@@n@&update#keyA@@@!f@ݠ!a@@@@ @@@@@@@@@@@@@@@@@@@_^^_^^@@.o@)singleton@m@@@@!a@@@@@@@@@laRaXlaRax@@Fp@&remove@@@@@!a@@@@@@@@@@@@7rbb8rbb&@@bq@%merge!f@@@@@=!a@ @@@@H!b@ @@@Q!c@@@@@@@@@@ @@@@ @@@@ @@@@@@@@@@xycmcsy{cc@@r@%union!f@@@@@!a@@ @@@@@@@@@@#@@@@)@@@-@@@@@@@@@@eeee@@s@'compare#cmp@!a@#@@@@@@ @@!@L@@@"@R@@@$@@@%@@&@@'@@(@h hh hJ@@t@%equal#cmp@!a@-@@@@)@@*@@+@u@@@,@{@@@.@@@/@@0@@1@@2@hhhi(@@$u@$iter!f#keyi@@@3$data!a@7@@@4@@5@@6@ @@@8@@@9@@:@@;@#j)j/$j)jg@@Nv@$fold!f#key@@@<$data!a@@@!b@B@@=@@>@@?@Ѡ@@@A$init@@C@@D@@E@OkkPkk@@zw@'for_all!f@@@@F@!a@JS@@@G@@H@@I@ @@@K]@@@L@@M@@N@ullvll@@x@&exists!f@@@@O@!a@Sy@@@P@@Q@@R@ @@@T@@@U@@V@@W@mfmlmfm@@y@&filter!f@ @@@X@!a@]@@@Y@@Z@@[@C @@@\G@@@^@@_@@`@n*n0n*na@@z@*filter_map!f@/@@@a@!a@eˠ!b@g@@@b@@c@@d@n@@@fr@@@h@@i@@j@oooo@@{@)partition!f@Z@@@k@!a@q@@@l@@m@@n@ @@@o@@@r@@@p@@s@@t@@u@rrrs @@E|@(cardinal@!a@v@@@w@@@x@@y@1t#t)2t#tB@@\}@(bindings@Ơ!a@{@@@zE@@@|@@}@@@~@@@PttQtt@@{~@+min_binding@!a@@@@@@@ @@@@@juukuv@@@/min_binding_opt@!a@@@@o@@@@@@@@@@@vvvw@@@+max_binding@!a@@@@@@@ @@@@@wwww@@@/max_binding_opt@8!a@@@@@@@@@@@@@@@xxxx@@@&choose@W!a@@@@7@@@ @@@@@yJyPyJyn@@@*choose_opt@q!a@@@@U@@@@@@@@@@@zWz]zWz@@&@%split@e@@@@!a@@@@ @@@ @@@@@@@@@@@@@%{b{h&{b{@@P@$find@@@@@!a@@@@@@@@@=}=}C>}=}^@@h@(find_opt@@@@@נ!a@@@@G @@@@@@@@Z}}[}~ @@@*find_first!f@@@@X@@@@@@!a@@@@@@@ @@@@@@@#~~#~~@@@.find_first_opt!f@@@@@@@@@@#!a@@@@@@@à@@@@@@@@@@00+@@@)find_last!f@@@@@@@@@@O!a@@@@/@@@͠ @@@@@@@7.47.f@@@-find_last_opt!f@B@@@@@@@@@v!a@@@@Z@@@֠@@@@@@@@@@>\b>\@@+@#map!f@!a@!b@@@@ @@@ @@@@@@@@!F"F@@L@$mapi!f@@@@@!a@!b@@@@@@ɠ @@@͠ @@@@@@@@GM &HM S@@r@&to_seq@ܠ!a@@@@j#Seq!t@@@@@@@@@@@iS jS 5@@@*to_rev_seq@!a@@@@#Seq!t@@@@@@@@@@@WW@@@+to_seq_from@@@@@%!a@@@@#Seq!t @@@@@@@@@@@@@[[P@@@'add_seq@#Seq!t&@@@!a@@@@@@@\ @@@`@@@@@@@@``%@@@&of_seq@#Seq!tN@@@!a@ @@@@@ @@@ @@ @dw}dw@@'@@@DZZg@+@Ӡ$Make@#Ord鑠8@@@A!t@@@@@@@kXakXq@@@@GA@8!a@@A@A<#Map$Make!t@@@I@B@@@7lr{8lr@@@@bA@ @@@@@@@@ @@@@@@@@@@@@@I@@@@ @@@@@@@@@@@@@@@@@@@6@@@: @@@@@@@@@@@@*@@@@@@@@@@@@@@V @@@Z@@@@@@@@@@@@@J@@@@@j@@@@@@@@@@@Z@@@@y@@@@~@@@@@@@@@@@p@@@@@@@@@~@@@@{z@@@@@@@@@@@@@@@@@@@@@@@@@@@@w@t@sr@@@@@p@@m@@@@@@@@@@Ơ @@@@̠@@@Р@@@@@@@@@@l@i@hg@e@@b@@@@@@@@ @@@@@@@a@@@@@@@@@@`@]@\[@Y@@V@@@@@@@@ @@@@@@@U@@@@@@@@@@T@Q@POM@@@KI@F@@@@@@@@! @@@E@@@@@@@@D@A@@?=@@@ ;9@ @6@@@ @@ @@ @; @@@3  @@@@@@@1@.@-,@/@@@@*@'@@@@@@@@T @@@&@@@@@@@@%@"@! @I@@@@@ @@@@@@@@n @@@!@@@"@@#@@$@@@@c@@@%@@*@@@&@@'@@(@ @@@) @@@+@@,@@-@@ @  @~@@@.@@2@4@@@/@@0@@1@ @@@3 @@@5@@6@@7@@@@@@@8@@>@@@9@@:@@;@ @@@<Ǡ@@@?̠@@@=@@@@@A@@B@@@@֠@C@@@D@@@E@@F@@@@@H@@@G@@@I @@J@@@K@@L@@@@@N@@@M@@@O @@P@@Q@@@@ @S@@@RӠ@@@T @@U@@@V@@W@@@@"@Y@@@X@@@Z @@[@@\@@@@4@^@@@] %@@@_ @@`@@@a@@b@@@@J@d@@@c8@@@e @@f@@g@@@@\@i@@@hM@@@j @@k@@@l@@m@@@@X@@@n@w@r@@@o@@@s @@@q@@@p@@t@@u@@v@@@@y@@@w@@y@@@x@@z@@{@@@@@@@|@@~@@@}@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@ݠ@@@@@@@ @@@@@@@@@@@|@{z@@@@x@@@@@@w@@@@@@@ @@@@@@@t@q@po@@@@m@@@@@@l@@@@i @@@ @@@@@@@@@@h@e@dc@a@^@@@@5@@@9 @@@@@@@@[@X@WV@+@@@@T@Q@@@@@@N@@@R @@@@@@@@N@K@J@\I@@@@FEO@@@@@@@@@@@D@A@@@t?@@@@<;g@@@@@@@@@@@:@7@6@r@@@@5@@@@21@@@Ǡ@@@@@@@@@@0@-@,@+*@@@̠)@@@@@@@@@@ @@@@@@@@&@#@"@! @@@Ԡ@@@@@@ՠ@@@@@@@@@@j%)@B@@@@TLTLp@F@@Ӡ#Set@+OrderedType!t 8@@@A@@@@@1"(2".@@@@\A@'compare @@@@@@@@(@@@@@@@@I]cJ]~@@t@@@MNU\@x@!S#elt 8@@@A@@@@@]^@@@@A@!t 8@@@A@@@@@fg@@@@A@%empty @@@@st#@@@(is_empty @@@@m@@@@@@AGA^@@@#mem @9@@@@'@@@@@@@@@@@@@@#add @@@@@>@@@A@@@@@@@@@@@)singleton @.@@@R@@@@@@$;@@@&remove @?@@@@e@@@h@@@@@@@@@@@%union @v@@@@{@@@~@@@@@@@@@@@%inter @@@@@@@@@@@@@@@@ @@1@(disjoint @@@@@@@@@@@@@@@@+1+M@@H@$diff @@@@@@@@@@@@@@@@34@@^@'compare @@@@@@@@)@@@@@@@@JK7@@u@%equal @@@@@@@@I@@@@@@@@ab@@@&subset @@@@@@@@`@@@@@@@@x?Ey?_@@@$iter !f@@@@A@@@@@@!@@@J@@@@@@@@@@@#map !f@@@@@@@@@@?@@@B@@@@@@@@@@@$fold !f@3@@@ @!a@ @@ @@ @_@@@ $init  @@@@@@@@@@'for_all !f@T@@@@@@@@@~@@@@@@@@@@@@@@&exists !f@s@@@@@@@@@@@@@@@@@@@@/5/]@@>@&filter !f@@@@@@@ @@!@@@@"@@@#@@$@@%@12@@\@*filter_map !f@@@@&5@@@'@@@(@@)@@@@*@@@+@@,@@-@S'-T'\@@~@)partition !f@@@@.Q@@@/@@0@@@@1@@@3@@@2@@4@@5@@6@xv|yv@@@(cardinal @@@@7i@@@8@@9@@@@(elements @&@@@: @@@;@@@<@@=@@@@'min_elt @<@@@>@@@?@@@@ @@@+min_elt_opt @M@@@A3@@@B@@@C@@D@$$@@@'max_elt @c@@@EE@@@F@@G@++@@@+max_elt_opt @t@@@HؠZ@@@I@@@J@@K@/!/A@@@&choose @@@@Ll@@@M@@N@55@@*@*choose_opt !@@@@O@@@P@@@Q@@R@::@@@@%split "@@@@S@@@@T@@@W@@@V@@@U@@X@@Y@@Z@7A8A@@b@$find #@@@@[@@@@\@@@]@@^@@_@MJV\NJVu@@x@(find_opt $@@@@`@@@@aR@@@b@@@c@@d@@e@hP17iP1[@@@*find_first %!f@@@@ff@@@g@@h@@@@i@@@j@@k@@l@VV?@@@.find_first_opt &!f@@@@m@@@n@@o@/@@@p@@@q@@@r@@s@@t@c-3c-i@@@)find_last '!f@(@@@u@@@v@@w@R@@@x4@@@y@@z@@{@jcijc@@@-find_last_opt (!f@F@@@|@@@}@@~@p@@@ԠV@@@@@@@@@@@qq@@@'of_list )@i@@@@@@@@@@@@xx@@+@+to_seq_from *@{@@@@@@@##Seq!t@@@@@@@@@@@@@I@&to_seq +@@@@<#Seq!t@@@@@@@@@78@@b@*to_rev_seq ,@@@@U#Seq!t@@@@@@@@@P Q 1@@{@'add_seq -@k#Seq!t@@@@@@@@@@@@@@@@@@no@@@&of_seq .@#Seq!t@@@@@@@@@@@@@@@@@fm@@Ӡ$Make@#Ord tD /8@@@A!t@@@@@@@@@@@A@J 08@@@A#Set$Make!t@@@@@@@@@@@A@T 1@@@@S@P@O 2@ @@@N@@@@@@M@J@I 3@=@@@@@@@H@@@@@@@@G@D@C 4@@@@@-@@@0@@@@@@@@B@?@> 5@#@@@<@@@@@@=@:@9 6@/@@@@J@@@M@@@@@@@@8@5@4 7@V@@@@[@@@^@@@@@@@@3@0@/ 8@g@@@@l@@@o@@@@@@@@.@+@* 9@x@@@@}@@@)@@@@@@@@(@%@$ :@@@@ @@@@ @@@ @@ @@ @#@ @ ;@@@@@@@@@@@@@@@@@@ <@@@@@@@@@@@@@@@@@@ =@@@@@@@@@@@@@@@@@@  > @@@@ @@@@@@@@@  @@@!@@"@@#@@@ ?@@@@$@@@%@@&@@@@'@@@(@@)@@*@@@ @@@@@+@@/@@,@@-@@@@.@@0@@1@@2@@@ A@@@@3@@@4@@5@@@@6@@@7@@8@@9@@@ B@@@@:@@@;@@<@.@@@=@@@>@@?@@@@@@ C@&@@@A@@@B@@C@D@@@DG@@@E@@F@@G@@@ D@<@@@HԠB@@@I@@@J@@K@^@@@La@@@M@@N@@O@@@ E@V@@@P@@@Q@@R@t@@@Sz@@@U~@@@T@@V@@W@@X@@@ F@@@@Y@@@Z@@[@@@ G@@@@\@@@]@@@^@@_@@@ H@@@@`@@@a@@b@@@ I@@@@c@@@d@@@e@@f@@@ J@@@@g@@@h@@i@@@ K@@@@j@@@k@@@l@@m@@@ L@@@@n@@@o@@p@@@ M@@@@q@@@r@@@s@@t@@@ N@@@@u@@@@v@@@y@@@x @@@w@@z@@{@@|@@@ O@@@@}@@@@~@@@@@@@@@@ P@@@@@)@@@@@@@@@@@@@@@@ Q@%@@@@@@@@@C@@@0@@@@@@@@@@ R@;@@@~@@@@@@Y@@@}I@@@@@@@@@@@|@y@x Sw@U@@@u@@@@@@s@@@`@@@@@@@@t@q@p To@k@@@m@@@@@@@@@ly@@@@@@@@@@@k@h@g U@f@@@@@@@@@@@@e@b@a V@@@@@@@@`_@@@@@@@@@@@^@[@Z W@@@@YX@@@@@@@@@W@T@S X@@@@RQ@@@@@@@@@P@M@L Y@KJ@@@@@@@@@@@@@@@@@@I@F@E Z@DC@@@@@@@@@@@@B@?@@@@@@@@rux@@@@(z2Stdlib__MoreLabels0]a;~|+Stdlib__Set0.z9FX+Stdlib__Seq05"g1<)b+Stdlib__Map0kZ,ҷ'V/Stdlib__Hashtbl04$*uկdD.Stdlib__Either0&]XF&Stdlib0yӶ~*8CamlinternalFormatBasics0cEXy g key data) table ]} .moreLabels.mliSa(*@@@@@@0@@@@@@%arrayH8@@M@A@A@@@@@@8@@@$boolE8@@%false^@@B@$true_@@H@@@A@@@@@I@A@$charB8@@@A@@@@@M@A@#exnG8@@AA@@@@@Q@@@5extension_constructorP8@@@A@@@@@U@@@%floatD8@@@A@@@@@Y@@@*floatarrayQ8@@@A@@@@@]@@@#intA8@@@A@@@@@a@A@%int32L8@@@A@@@@@e@@@%int64M8@@@A@@@@@i@@@&lazy_tN8@@O@A@A@Y@@@@@r@@@$listI8@@P@A"[]a@@@"::b@@@Q@@@ @@A@Y@@@@@@@@)nativeintK8@@@A@@@@@@@@&optionJ8@@S@A$Nonec@@@$Somed@@@@@A@Y@@@@@@@@&stringO8@@@A@@@@@@@@$unitF8@@"()`@@@@@A@@@@@@A@ .Assert_failure\ p@@@@Jm@@@@@@V@@A͠=ocaml.warn_on_literal_patternѐ@@0Division_by_zeroY @@@Aנ  @+End_of_fileX !@@@Aߠ@'FailureU )@%@@A蠰@0Invalid_argumentT 2@.@@A񠰠$#@-Match_failureR ;@:67@@\@@A21@ )Not_foundV I@@@A: 9 @-Out_of_memoryS Q@@@ABA@.Stack_overflowZ Y@@@AJI@.Sys_blocked_io[ a@@@AR"Q"@)Sys_errorW i@e@@A([+Z+@:Undefined_recursive_module] r@qmn@@c@@A6i9h9@ %bytesC8@@@A@@@@@=@@@&Stdlib@A6'HashtblA?c,3@c,:@@БV p Hash tables and hash functions. Hash tables are hashed association tables, with in-place modification. QdACRg@@@@@@0POOPPPPP@N@Af7 {1 Generic interface} ajbj@@@@@@A(!t Blmmm@А!a@0srrsssss@r8@@@@@B@A@C@@C@@@C@C@GG@BB@@@mm@)ocaml.doc 6 The type of hash tables from type ['a] to type ['b]. nnB@@@@@@@@@@@Amm@@B@А!b@9mm@@ @8A @B@A'Hashtbl!tLD@D@@@@OO@BB@@@74@@%@@Aгm=@А!a]mm@@А!bdmm@@@'gmM@@OL@ON@&create\pDJpDP@б&randomгĠ$boolpDpD@@ @@@U0@J@A@@б@г#intqq@@ @@@V@@г!tqq@А!a@`C@W$q q@@А!b@bC@X0+q,q@@@! @@@[83q @@@. @@\<1#@@MF@@@] @@^D?pDS,@@ @BpDF/@  [Hashtbl.create n] creates a new, empty hash table, with initial size [n]. For best results, [n] should be on the order of the expected number of elements that will be in the table. The table grows as needed, so [n] is just an initial guess. The optional [~][random] parameter (a boolean) controls whether the internal organization of the hash table is randomized at each execution of [Hashtbl.create] or deterministic over all executions. A hash table that is created with [~][random] set to [false] uses a fixed hash function ({!hash}) to distribute keys among buckets. As a consequence, collisions between keys happen deterministically. In Web-facing applications or other security-sensitive applications, the deterministic collision patterns can be exploited by a malicious user to create a denial-of-service attack: the attacker sends input crafted to create many collisions in the table, slowing the application down. A hash table that is created with [~][random] set to [true] uses the seeded hash function {!seeded_hash} with a seed that is randomly chosen at hash table creation time. In effect, the hash function used is randomly selected among [2^{30}] different hash functions. All these hash functions have different collision patterns, rendering ineffective the denial-of-service attack described above. However, because of randomization, enumerating all elements of the hash table using {!fold} or {!iter} is no longer deterministic: elements are enumerated in different orders at different runs of the program. If no [~][random] parameter is given, hash tables are created in non-random mode by default. This default can be changed either programmatically by calling {!randomize} or by setting the [R] flag in the [OCAMLRUNPARAM] environment variable. @before 4.00.0 the [~][random] parameter was not present and all hash tables were created in non-randomized mode. NrOUv@@@@@@@fA@>@X%clear]ZW[W@б@г!teWfW@А!a@kC@c0mllmmmmm@w2@AsWtW@@А!b@mC@dWW@@@# @@@gW"@@г蠐$unitWW@@ @@@h$@@@@@i'@@@W @ v Empty a hash table. Use [reset] instead of [clear] to shrink the size of the bucket table to its initial size. XYN@@@@@@@B@@:%reset^[PV[P[@б@гQ!t[Pg[Ph@А!a@vC@n0@Yt2@A[P_[Pa@@А!b@xC@o[Pc[Pe@@@# @@@r[P^"@@г@$unit[Pl[Pp@@ @@@s$@@@@@t'@@@[PR @` k Empty a hash table and shrink the size of the bucket table to its initial size. @since 4.00.0 \qs^@@@@@@@C@@:$copy_ ` `@б@г!t``@А!a@C@y0@Yt2@A#`$`@@А!b@C@z/`0`@@@# @@@}7`"@@гӠ!t?` @` @А!a*%F`G`@@А!b#,M`N`@@@7*@@@4U`@@@' @@8"@@@[`@ɐ ' Return a copy of the given hashtable. ga  ha 9@@@@@@@D@+@K#add`sc;Atc;D@б@г!t~c;Pc;Q@А!a@C@0@j2@Ac;Hc;J@@А!b@C@c;Lc;N@@@# @@@c;G"@@б#keyА!a$c;Yc;[@@б$dataА!b )c;dc;f@@г$unitc;jc;n@@ @@@8@@2@@;c;_ @@%D@@?c;U @@@2@@C-@@@c;=@= 8 [Hashtbl.add tbl ~key ~data] adds a binding of [key] to [data] in table [tbl]. Previous bindings for [key] are not removed, but simply hidden. That is, after performing {!remove}[ tbl key], the previous binding for [key], if any, is restored. (Same behavior as with association lists.) doqi|@@@@@@@E@"@V$findakk@б@г!tkk@А!a@C@0@u2@Akk@@А!b@C@ k k@@@# @@@k"@@б@А!a"kk@@А!b#!k"k@@@-@@( @@@@@+@@@+k @ y [Hashtbl.find tbl x] returns the current binding of [x] in [tbl], or raises [Not_found] if no such binding exists. 7l8mT@@@@@@@OF@@>(find_optbCoV\DoVd@б@г⠐!tNoVpOoVq@А!a@C@0VUUVVVVV@]x2@A\oVh]oVj@@А!b@C@hoVlioVn@@@# @@@poVg"@@б@А!a"woVuxoVw@@г&optionoV~oV@А!b$-oV{oV}@@@*@@@4 @@@<@@7@@@)@@:$@@@oVX@ [Hashtbl.find_opt tbl x] returns the current binding of [x] in [tbl], or [None] if no such binding exists. @since 4.05 pr@@@@@@@G@%@M(find_allctt @б@гM!tt,t-@А!a@C@0@l2@At$t&@@А!b@C@t(t*@@@# @@@t#"@@б@А!a"t1t3@@г$listt:t>@А!b$-t7t9@@@*@@@4 @@@<@@7@@@)@@:$@@@t@o [Hashtbl.find_all tbl x] returns the list of all data associated with [x] in [tbl]. The current binding is returned first, then the previous bindings, in reverse order of introduction in the table.  u?Ax@@@@@@@%H@%@M#memdz$z'@б@г!t$z3%z4@А!a@C@0,++,,,,,@l2@A2z+3z-@@А!b@C@>z/?z1@@@# @@@Fz*"@@б@А!a"Mz8Nz:@@г%$boolVz>WzB@@ @@@,@@@4@@/@@@!@@2 @@@dz @Ґ 6 [Hashtbl.mem tbl x] checks if [x] is bound in [tbl]. p{CEq{C@@@@@@@I@@E&removee|}}}@б@г!t}}@А!a@C@0@d2@A}}@@А!b@C@}}@@@# @@@}"@@б@А!a"}}@@г$unit}}@@ @@@,@@@4@@/@@@!@@2 @@@}@5 [Hashtbl.remove tbl x] removes the current binding of [x] in [tbl], restoring the previous binding if it exists. It does nothing if [x] is not bound in [tbl]. ~&[@@@@@@@J@@E'replacef]c]j@б@г~!t]v]w@А!a@C@0@d2@A]n]p@@А!b@C@]r]t@@@# @@@ ]m"@@б#keyА!a$]]@@б$dataА!b )] ]@@г$unit(])]@@ @@@8@@2@@;1] @@%D@@?5]{ @@@2@@C-@@@;]_@ / [Hashtbl.replace tbl ~key ~data] replaces the current binding of [key] in [tbl] by a binding of [key] to [data]. If [key] is unbound in [tbl], a binding of [key] to [data] is added to [tbl]. This is functionally equivalent to {!remove}[ tbl key] followed by {!add}[ tbl key data]. GH@@@@@@@_K@"@V$itergST@б!fб#keyА!a@C@0baabbbbb@q.@Ahi@@б$dataА!b@C@wx@@г٠$unit@@ @@@ @@@@# @@1,@@' @@б@г+!t@А!a=8@@А!b3?@@@J:@@@G@@г$unit  @@ @@@U@@@@@X@@i6@@[ @@@@2 f [Hashtbl.iter ~f tbl] applies [f] to all bindings in table [tbl]. [f] receives the key as first argument, and the associated value as second argument. Each binding is presented exactly once to [f]. The order in which the bindings are passed to [f] is unspecified. However, if the table contains several bindings for the same key, they are passed to [f] in reverse order of introduction, that is, the most recent binding is passed first. If the hash table was created in non-randomized mode, the order in which the bindings are enumerated is reproducible between successive runs of the program, and even between minor versions of OCaml. For randomized hash tables, the order of enumeration is entirely random. The behavior is not specified if the hash table is modified by [f] during the iteration. w{@@@@@@@L@@o2filter_map_inplaceh}}@б!fб#keyА!a@C@0@.@A}}@@б$dataА!b@C@}}@@г}&option } }@А!b!}}@@@@@@( @@$@@+}@@94@@/}@@б@г!t(})}@А!aE@/}0}@@А!b;G6}7}@@@RB@@@O>}@@г$unitFG@@ @@@]@@@@@`@@q6@@cR} @@@U}@Ð o [Hashtbl.filter_map_inplace ~f tbl] applies [f] to all bindings in table [tbl] and update each binding depending on the result of [f]. If [f] returns [None], the binding is discarded. If it returns [Some new_val], the binding is update to associate the key to [new_val]. Other comments for {!iter} apply as well. @since 4.03.0 ab6L@@@@@@@yM@@w$foldimNTnNX@б!fб#keyА!a@ C@0|{{|||||@.@ANbNd@@б$dataА!b@ C@NmNo@@б@А!c@ C@NsNu@@А!c $NyN{@@@@@) @@% @@ ,Nh@@:5@@ 0N^ @@б@гN!tNN@А!aFANN@@А!b<HNN@@@SC@@@ PN@@б$initА!c@YNN@@А!cF_NN@@KK@@ dN@@@@@ h@@y=@@ kN[ @@@NP@\  [Hashtbl.fold ~f tbl ~init] computes [(f kN dN ... (f k1 d1 init)...)], where [k1 ... kN] are the keys of all bindings in [tbl], and [d1 ... dN] are the associated values. Each binding is presented exactly once to [f]. The order in which the bindings are passed to [f] is unspecified. However, if the table contains several bindings for the same key, they are passed to [f] in reverse order of introduction, that is, the most recent binding is passed first. If the hash table was created in non-randomized mode, the order in which the bindings are enumerated is reproducible between successive runs of the program, and even between minor versions of OCaml. For randomized hash tables, the order of enumeration is entirely random. The behavior is not specified if the hash table is modified by [f] during the iteration. !$!(@@@@@@@N@@&lengthj!*!0!*!6@б@г!t!*!B!*!C@А!a@ C@ 0@2@A!*!: !*!<@@А!b@ C@ +!*!>,!*!@@@@# @@@ 3!*!9"@@г堐#int;!*!G<!*!J@@ @@@ $@@@@@ '@@@F!*!, @ [Hashtbl.length tbl] returns the number of bindings in [tbl]. It takes constant time. Multiple bindings are counted once each, so [Hashtbl.length] gives the number of times [Hashtbl.iter] calls its first argument. R!K!MS"""9@@@@@@@jO@@:)randomizek^";"A_";"J@б@г $uniti";"Mj";"Q@@ @@@ 0kjjkkkkk@Sn,@A@@гѠ$unitx";"Uy";"Y@@ @@@ @@@@@ @@@";"= @񐠠 ; After a call to [Hashtbl.randomize()], hash tables are created in randomized mode by default: {!create} returns randomized hash tables, unless the [~random:false] optional parameter is given. The same effect can be achieved by setting the [R] parameter in the [OCAMLRUNPARAM] environment variable. It is recommended that applications or Web frameworks that need to protect themselves against the denial-of-service attack described in {!create} call [Hashtbl.randomize()] at initialization time. Note that once [Hashtbl.randomize()] was called, there is no way to revert to the non-randomized default behavior of {!create}. This is intentional. Non-randomized hash tables can still be created using [Hashtbl.create ~random:false]. @since 4.00.0 "Z"\%%@@@@@@@P@@%-is_randomizedl%%%%@б@г$unit%%%%@@ @@@ 0@>S,@A@@г$bool%%%%@@ @@@ @@@@@ @@@%% @.  Return [true] if the tables are currently created in randomized mode by default, [false] otherwise. @since 4.03.0 %%&1&G@@@@@@@Q@@%'rebuildm&I&O&I&V@б&randomг$bool&I&&I&@@ @@@ 0@@U.@A@@б@г!t&&&&@А!a@ ,C@  && &&@@А!b@ .C@ !# && &&@@@! @@@ $+ && @@г!t && &&@А!a(: %&& &&&@@А!b#A ,&& -&&@@@5*@@@ 'I 4&&@@@' @@ (M"@@^V@@@ ) @@ *T ?&I&Y!@@ @ B&I&K$@  Return a copy of the given hashtable. Unlike {!copy}, {!rebuild}[ h] re-hashes all the (key, value) entries of the original table [h]. The returned hash table is randomized if [h] was randomized, or the optional [random] parameter is true, or if the default is to create randomized hash tables; see {!create} for more information. {!rebuild} can safely be used to import a hash table built by an old version of the {!Hashtbl} module, then marshaled to persistent storage. After unmarshaling, apply {!rebuild} to produce a hash table for the current version of the {!Hashtbl} module. @since 4.12.0  N&& O);)Q@@@@@@@ fR@3@hA(*statisticsnC [)j)q \)j){@@8@@,num_bindingso@ @@@ 0 h)) i))@א Y Number of bindings present in the table. Same value as returned by {!length}.  u)) v)*@@@@@@@ T+num_bucketsp@ -@@@ 3 ** **&@𐠠 ! Number of buckets in the table.  *'*- *'*S@@@@@@@ U1max_bucket_lengthq@ F@@@ 6 *T*X *T*o@ ( Maximal number of bindings per bucket.  *p*v *p*@@@@@@@ V0bucket_histogramr@  c@@@ 9@@@ ; ** **@' Histogram of bucket sizes. This array [histo] has length [max_bucket_length + 1]. The value of [histo.(i)] is the number of buckets whose size is [i].  ** +9+}@@@@@@@ W@@A'Hashtbl*statistics@@@ >@@@@ )j)l +~+@@/ @since 4.00.0  )S)U )S)i@@@@@@@@@ S@~ ))@@Ш@г#int )) ))@@0        @  8@@@A@@D@ @D@ /@@@@,)@@@A @@@E@ 1@ ** @@Ш@г#int **" **%@@@@@E@ 4 @{ *T*i@@Ш@г#int *T*k *T*n@@/@@@E@ 72@yyo '**@@Ш@г|%array 0**x@г#int 8** 9**@@I@@@J@@@E@ <M@@Aгvwv E)j)~ F)j)@@~V@@xu@0 E D D E E E E E@V@Ayx@%statss R++ S++@б@г!t ]++ ^++@А!a@ fD@ ^0 e d d e e e e e@w @A k++ l++@@А!b@ hD@ _ w++ x++@@@# @@@ b ++"@@г,*statistics ++ ++@@ @@@ c$@@@@@ d'@@@ ++ @ [Hashtbl.stats tbl] returns statistics about the table [tbl]: number of buckets, size of the biggest bucket, distribution of buckets by size. @since 4.00.0  ++ ,H,]@@@@@@@ X@@: ? {1 Hash tables and Sequences}  ,_,a ,_,@@@@@@0        @Je#@A&to_seq ,, ,,@б@г Z!t ,, ,,@А!a@ _D@ i  ,, ,,@@А!b@ aD@ j, ,, ,,@@@! @@@ m4 ,, @@г #Seq!t ,, ,,@ВА!a.I ,, ,,@@А!b)P ,, ,,@@@;0@@ ZW@@@"@@@ \\ ,,@@@1@@ ]`, @@@ ,,#@  Iterate on the whole table. The order in which the bindings appear in the sequence is unspecified. However, if the table contains several bindings for the same key, they appear in reversed order of introduction, that is, the most recent binding appears first. The behavior is not specified if the hash table is modified during the iteration. @since 4.07  ,, ! .0.D@@@@@@@ 8Y@2@s+to_seq_keys ,.F.L -.F.W@б@г ˠ!t 7.F.a 8.F.b@А!a@ kD@ b0 ? > > ? ? ? ? ?@2@A E.F.[ F.F.]@@@@@ c  L.F.^ M.F._@@@ @@@ f T.F.Z@@г '#Seq!t _.F.i `.F.n@А!a(# f.F.f g.F.h@@@.@@@ h* @@@!@@ i-@@@ r.F.H@ 4 Same as [Seq.map fst (to_seq m)] @since 4.07  ~.o.q ..@@@@@@@ Z@"@@-to_seq_values .. ..@б@г )!t .. ..@@@@ l0        @Zu-@A .. ..@@А!b@ uD@ m .. ..@@@ @@@ p ..@@г #Seq!t .. ..@А!b( .. ..@@@%@@@ r/ @@@!@@ s2@@@ ..@ > 4 Same as [Seq.map snd (to_seq m)] @since 4.07  .. ./@@@@@@@ [@"@E'add_seq // //!@б@г !t //, //-@А!a@ D@ v0        @dz2@A //% //'@@А!b@ D@ w //( //*@@@# @@@ z //$"@@б@г #Seq!t "//; #//@@ВА!a2- ,//2 -//4@@А!b+4 3//7 4//9@@@?2@@ {;@@@"@@@ }@ ?//1@@г $unit G//D H//H@@ @@@ ~N@@@@@ Q@@@C@@ T> @@@ U//@ Ð E Add the given bindings to the table, using {!add} @since 4.07  a/I/K b//@@@@@@@ y\@@g+replace_seq m// n//@б@г !t x// y//@А!a@ D@ 0        @2@A // //@@А!b@ D@  // //@@@# @@@  //"@@б@г o#Seq!t // //@ВА!a2- // //@@А!b+4 // //@@@?2@@ ;@@@"@@@ @ //@@г %$unit // //@@ @@@ N@@@@@ Q@@@C@@ T> @@@ //@ H I Add the given bindings to the table, using {!replace} @since 4.07  // 0 0 @@@@@@@ ]@@g&of_seq 0"0( 0"0.@б@г #Seq!t 0"0; 0"0@@ВА!a@ D@ 0        @8@A 0"02 0"04@@А!b@ D@  0"07 0"09@@@ @@ @@@.@@@  )0"01)@@г Š!t 10"0M 20"0N@А!a.) 80"0E 90"0G@@А!b'0 ?0"0I @0"0K@@@;.@@@ 8 G0"0D@@@& @@ <"@@@ M0"0$@  Build a table from the given bindings. The bindings are added in the same order they appear in the sequence, using {!replace_seq}, which means that if two pairs have the same key, only the latest one will appear in the table. @since 4.07  Y 0O0Q Z$1I1]@@@@@@@ q^@+@O o: {1 Functorial interface}  j&1_1a k&1_1@@@@@@0 i h h i i i i i@_#@A  The functorial interface allows the use of specific comparison and hash functions, either for performance/security concerns, or because keys are not hashable/comparable with the polymorphic builtins. For instance, one might want to specialize a table for integer keys: {[ module IntHash = struct type t = int let equal i j = i=j let hash i = i land max_int end module IntHashtbl = Hashtbl.Make(IntHash) let h = IntHashtbl.create 17 in IntHashtbl.add h 12 "hello" ]} This creates a new module [IntHashtbl], with a new type ['a IntHashtbl.t] of tables from [int] to ['a]. In this example, [h] contains [string] values so its type is [string IntHashtbl.t]. Note that the new type ['a IntHashtbl.t] is not compatible with the type [('a,'b) Hashtbl.t] of the generic interface. For example, [Hashtbl.length h] would not type-check, you must use [IntHashtbl.length].  {(11 |C55@@@@@@б*HashedTypeE E55 E55@БA(!tD G55 G55@@8@@@A@@@@@ G55@  ! The type of the hashtable keys.  H55 H55@@@@@@@@@ _@@A@@0        @;@A@%equal J55 J55@б@г(!t J56 J56@@ @@@ 0        @V3-@A@@б@г9!t J56 J56@@ @@@ @@г $bool J56  J56@@ @@@ @@@@@ !@@@'@@ $* @@@ J55@ V . The equality predicate used to compare keys.  K66 K66H@@@@@@@ `@@7$hashM6J6TM6J6X@б@гw!t M6J6[ M6J6\@@ @@@ 0        @Pe,@A@@г Ġ#intM6J6`M6J6c@@ @@@ @@@@@ @@@%M6J6P @  A hashing function on keys. It must be such that if two keys are equal according to [equal], then they have identical hash values as computed by [hash]. Examples: suitable ([equal], [hash]) pairs for arbitrary key types include - ([(=)], {!hash}) for comparing objects by structure (provided objects do not contain floats) - ([(fun x y -> compare x y = 0)], {!hash}) for comparing objects by structure and handling {!Stdlib.nan} correctly - ([(==)], {!hash}) for comparing objects by physical equality (e.g. for mutable or cyclic objects). 1N6d6l2Y89@@@@@@@Ia@@%@A@S@?@@087788888@,A@A 0;::;;;;;@@A@F55AZ99%@@ - The input signature of the functor {!Make}. M[9&9(N[9&9Z@@@@@@@PE55@@б!SHZ]9\9j[]9\9k@БA(#keyFi_9v9j_9v9@@8@@@A@@@@@m_9v9|@@@@c@@A@@@0lkklllll@A@@~W@@8+b@A@A(!tG`99`99@А!a@ 0@"-'8@@ @A@A@G@B@@@`99@@@@d@A`99`99@@ @8@A@A@O@B@@@ @@@@@A@ @@0@@A @&createa99a99@б@гa#inta99a99@@ @@@ 0@-= @A@@гA!ta99a99@А!a@ H@ a99a99@@@ @@@ @@@"@@ %@@@a99@@e@@@%%clearb99b99@б@гo!tb99b99@А!a@ H@ 0@DY%@Ab99b99@@@ @@@  @@гi$unitb99b99@@ @@@ @@@@@ @@@b99 @@2f@ @@%reset&c99'c99@б@г!t1c992c99@А!a@ H@ 098899999@>Y%@A?c99@c99@@@ @@@  @@г$unitMc99Nc99@@ @@@ @@@@@ @@@Xc99 @ Ɛ/ @since 4.00.0 dc99ec9:@@@@@@@|g@@,$copype: :qe: :@б@г!t{e: :|e: :@А!a@ H@ 0@Kf2@Ae: :e: :@@@ @@@  @@г!te: :%e: :&@А!ae: :"e: :$@@@"@@@  @@@@@ !@@@e: :@@h@@@'#addf:':1f:':4@б@г;!tf:'::f:':;@А!a@ H@ 0@Fa%@Af:':7f:':9@@@ @@@  @@б#keyгw#keyf:':Cf:':F@@ @@@ @@б$dataА!a'"f:':Of:':Q@@гP$unitf:':Uf:':Y@@ @@@ 1@@9@@ 4f:':J @@,!@@ 8f:':? @@@7@@ <:@@@ f:':-@@!i@@@B&removeg:Z:dg:Z:j@б@г!t g:Z:p!g:Z:q@А!a@ H@ 0(''(((((@a|%@A.g:Z:m/g:Z:o@@@ @@@  @@б@гՠ#key>g:Z:u?g:Z:x@@ @@@ @@г$unitKg:Z:|Lg:Z:@@ @@@ %@@@@@ (@@@&@@ +) @@@Yg:Z:`@@pj@@@1$finddh::eh::@б@гꠐ!toh::ph::@А!a@ H@ 0wvvwwwww@Pk%@A}h::~h::@@@ @@@  @@б@г$#keyh::h::@@ @@@ @@А!a!h::h::@@@ &@@ !@@@@@ $"@@@h:: @@k@ @@*(find_opt i::i::@б@г2!ti::i::@А!a@ H@ 0@Id%@Ai::i::@@@ @@@  @@б@гl#keyi::i::@@ @@@ @@гV&optioni::i::@А!a+&i::i::@@@1@@@ - @@@@@ 0@@@.@@ 31@@@i::@f/ @since 4.05.0 j::j::@@@@@@@l@%@F(find_allàl::l:;@б@г!tl:;l:;@А!a@ H@ 0#""#####@e2@A)l:;*l:;@@@ @@@  @@б@гР#key9l:; :l:;@@ @@@ @@г۠$listFl:;Gl:;@А!a+&Ml:;Nl:;@@@1@@@ - @@@@@ 0@@@.@@ 31@@@\l::@@sm@@@9'replaceĠgm;;$hm;;+@б@г!trm;;1sm;;2@А!a@ H@ 0zyyzzzzz@Xs%@Am;;.m;;0@@@ @@@  @@б#keyг)#keym;;:m;;=@@ @@@ @@б$dataА!a'"m;;Fm;;H@@г$unitm;;Lm;;P@@ @@@ 1@@9@@ 4m;;A @@,!@@ 8m;;6 @@@7@@ <:@@@m;; @@n@@@B#memŠn;Q;[n;Q;^@б@гM!tn;Q;dn;Q;e@А!a@ H@ 0@a|%@An;Q;an;Q;c@@@ @@@  @@б@г#keyn;Q;in;Q;l@@ @@@ @@г̠$booln;Q;pn;Q;t@@ @@@ %@@@@@ (@@@&@@ +) @@@ n;Q;W@@"o@@@1$iterƠo;u;o;u;@б!fб#keyг#key'o;u;(o;u;@@ @@@ 0)(()))))@Pk%@A@@б$dataА!a@ H@ <o;u;=o;u;@@г$unitEo;u;Fo;u;@@ @@@ @@@@ !No;u; @@3(@@ %Ro;u; @@б@гנ!t\o;u;]o;u;@А!a,6co;u;do;u;@@@2@@@ = @@гʠ$unitqo;u;ro;u;@@ @@@ J@@@@@ M@@b-@@ P}o;u; @@@o;u;{@@p@@@W2filter_map_inplaceǠp;;p;;@б!fб#keyг3#keyp;;p;;@@ @@@ 0@v%@A@@б$dataА!a@ #H@ p;;p;;@@г.&optionp;;p;;@А!ap;;p;;@@@@@@ & @@$@@ )p;;@@;0@@ -p;;@@б@гT!tp;;p;;@А!a4>p;;p;;@@@:@@@ E @@гG$unitq<< q<<@@ @@@ R@@@@@ U@@j-@@ !Xp;; @@@p;;@k/ @since 4.03.0  r<< r<<)@@@@@@@!q@@l$foldȠt<+<5t<+<9@б!fб#keyг#key&t<+Y%@Av<<v<<@@@ @@@ < @@г *statisticsv<<v<<@@ @@@ =@@@@@ >@@@ v<< @w/ @since 4.00.0 v<<v<<@@@@@@@-t@@,&to_seqˠ!x<<"x<<@б@г!t,x<<-x<<@А!a@ JH@ A043344444@Kf2@A:x<<;x<<@@@ @@@ C @@г#Seq!tKx<<Lx<<@Вг#keyXx<<Yx<<@@ @@@ D&@@А!a0+cx<<dx<<@@@7@@ E2@@@)@@@ G7ox<<$@@@6@@ H;9'@@@ux<<*@㐠- @since 4.07 y<=y<=@@@@@@@u@9@N+to_seq_keys̠{==!{==,@б@г!t{==1{==2@@@@ K0@h-@A{==/{==0@@@ @@@ M @@гz#Seq!t{==:{==?@гS#key{==6{==9@@ @@@ N#@@@@@@ P( @@@&@@ Q+)@@@{==@:- @since 4.07 |=@=F|=@=X@@@@@@@v@)@>-to_seq_values͠~=Z=d~=Z=q@б@гj!t~=Z=w~=Z=x@А!a@ YH@ R0@]s2@A~=Z=t~=Z=v@@@ @@@ T @@г#Seq!t~=Z=~=Z=@А!a~=Z=|~=Z=~@@@%@@@ V! @@@@@ W$"@@@!~=Z=`@- @since 4.07 -==.==@@@@@@@Ew@"@7'add_seqΠ9==:==@б@г!tD==E==@А!a@ eH@ Z0LKKLLLLL@Vq2@AR==S==@@@ @@@ \ @@б@г-#Seq!te==f==@Вг #keyr==s==@@ @@@ ](@@А!a2-}==~==@@@9@@ ^4@@@)@@@ `9==$@@гꠐ$unit====@@ @@@ aG@@@@@ bJ@@@H@@ cMK @@@==@ - @since 4.07 ====@@@@@@@x@@`+replace_seqϠ===>@б@г=!t=> => @А!a@ qH@ f0@2@A=>=>@@@ @@@ h @@б@г#Seq!t=>=>@Вг#key=>=>@@ @@@ i(@@А!a2-=>=>@@@9@@ j4@@@)@@@ l9=>$@@гh$unit=>"=>&@@ @@@ mG@@@@@ nJ@@@H@@ oMK @@@==@- @since 4.07 )>'>-*>'>?@@@@@@@Ay@@`&of_seqР5>A>K6>A>Q@б@г #Seq!tC>A>_D>A>d@Вг砐#keyP>A>UQ>A>X@@ @@@ r0RQQRRRRR@<@A@@А!a@ {H@ s b>A>[c>A>]@@@ @@ t@@@0@@@ vn>A>T+@@г!tv>A>kw>A>l@А!a '}>A>h~>A>j@@@&@@@ x. @@@@@ y1@@@>A>G@- @since 4.07 >m>s>m>@@@@@@@z@"@D@60A@A@@@M@9@@R@K @@U@N@@7@0@,@%@@L@8@@(@@B@@0@uD@A30@]@A^9n9r>>@@= . The output signature of the functor {!Make}. >>>>@@@@@@@]9\9^@0@p@A@$Make8I>>>>@@Т!HJ>>>>@Р z*HashedType>>>>@0@A@mA@e1@*@@k@d @@z@s%@@e@^@@*@@_@X$@@e@Q@@@@@gZM{@A:9@@УР蠐!SB>>C>>@0BAABBBBB@EW@P@U`|Z@A  @@ꠐ#keyS>?T>?@(@8@@@Am!t@@@ @@@@a>>b>? @@@@y}@@Aг !H l>?  @@( @@@!tu? ?v? ?@(А!a@K@ ?? ?? ?@@BA@8 @A@A_'Hashtbl$Make!tK@@@@O@B@@@? ?? ?6@@@@~@@Aг!H? ?%@А!ai? ?"? ?$@@@&l@@@@ P K8@@@A^]@@@@@@@\@@@YA@ =!K8B@A@A76543@@@21@@0@@@-A@ $"@ @@@ @@@@@@@@#@ @@@@@@@@@@@$@@@@@@@@@@@%@%z@@@)~@@@@@@W@U@Q&@3C@@@5Z@@@*L"@@@@@@@@@@ @ @'@H@@@@@@@@@@@@@@@@@(@Z@@@@'@@@@@@@@@@)@i@@@@6@@@j@@@@@@@@RPC@?*@|1@@@@I@@@:@@@@@@@@@@+@@@@\@@@@@@@@@@@@@@@,@@@@@p@@@@@@@@@@@x@v@r-nl~@@@^YQ@@@@@@@@a@@@.@@@@@@@@@@.@@@@@@@@@@@۠@@@@@@@@@@@@/@@@@@@@@@@@@@@X@@@@@@@>@<@80@*@@@@@@@@@@ @1@ @@@@@@@@@@2@@@@@@@@@@@@@@@z@v3@0j@@@_^@@@@@@~@@}@EC6@24@C$@@@|*@@@{@@z@@5@S@@@y@Р(@@@x@@w@@@v@@@u@@t@@s@@6@o}@@@r@onD@@@q@@p@@@oM@@@n@@m@@l@<:-@)7@0%$Z@@@k@@j@@@i@@@h@@g@@@*.@@q0onnooooo@p@At>>@@␠ [ Functor building an implementation of the hashtable structure. The functor [Hashtbl.Make] returns a structure containing a type [key] of keys and a type ['a t] of hash tables associating data of type ['a] to keys of type [key]. The operations perform similarly to those of the generic interface, but use the hashing and equality functions specified in the functor argument [H] instead of generic equality and hashing. Since the hash function is not seeded, the [create] operation of the result structure always returns non-randomized hash tables. ?7?9AuA@@@@@@@>>@@б0SeededHashedTypeS@A 0@@AAACC@@ G The input signature of the functor {!MakeSeeded}. @since 4.00.0 CCCD@@@@@@@AA@0@@A@б'SeededSUPDD!DD(@БA(#key=ND3D>D3DA@@8@@@A@@@@@D3D9@@@@D@@A@@@0@:0*A@@X@@9,C@A@A(!t>ODBDQDBDR@А!a@0@"-'8@@@A@A@G@B@@@DBDH@@@@E@ADBDNDBDP@@J@8@A@A@O@B@@@ @@@@@A@ @@0@@A @&create?DSD]DSDc@б&randomгڠ$bool DSD DSD@@ @@@0        @/?"@A@@б@гƠ#intDDDD@@ @@@@@гR!t)DD*DD@А!a@P@$5DD6DD@@@ @@@+@@@ @@.#@@?7@@@ @@5FDSDf@@ @IDSDY @@`F@"@@<%clear@TDDUDD@б@г!t_DD`DD@А!a@P@0gffggggg@[r%@AmDDnDD@@@ @@@ @@гԠ$unit{DD|DD@@ @@@@@@@@@@@DD @@G@ @@%resetADDDD@б@гŠ!tDDDD@А!a@P@0@>Y%@ADDDD@@@ @@@ @@г$unitDDDD@@ @@@@@@@@@@@DD @@H@ @@$copyBDEDE@б@г!tDE DE @А!a@P@0@>Y%@ADE DE @@@ @@@ @@г!tDEDE@А!aDEDE@@@"@@@ @@@@@!@@@DD@@I@@@'#addCEE EE#@б@гG!tEE)EE*@А!a@ P@0&%%&&&&&@Fa%@A,EE&-EE(@@@ @@@ @@б#keyг#key>EE2?EE5@@ @@@@@б$dataА!a'"LEE>MEE@@@г$unitUEEDVEEH@@ @@@1@@9@@4^EE9 @@,!@@ 8bEE. @@@7@@ <:@@@hEE@@J@@@B&removeDsEIEStEIEY@б@г!t~EIE_EIE`@А!a@P@ 0@a|%@AEIE\EIE^@@@ @@@ @@б@г᠐#keyEIEdEIEg@@ @@@@@г$unitEIEkEIEo@@ @@@%@@@@@(@@@&@@+) @@@EIEO@@K@@@1$findEEpEzEpE~@б@г!tEpEEpE@А!a@P@0@Pk%@AEpEEpE@@@ @@@ @@б@г0#keyEpEEpE@@ @@@@@А!a!EpEEpE@@@ &@@!@@@@@$"@@@EpEv @@L@ @@*(find_optF EE EE@б@г>!tEEEE@А!a@'P@0@Id%@A#EE$EE@@@ @@@  @@б@гx#key3EE4EE@@ @@@!@@г&option@EEAEE@А!a+&GEEHEE@@@1@@@#- @@@@@$0@@@.@@%31@@@VEE@Đ/ @since 4.05.0 bEEcEE@@@@@@@zM@%@F(find_allGnEEoEE@б@г!tyEEzEE@А!a@1P@(0@e2@AEEEE@@@ @@@* @@б@гܠ#keyEEEE@@ @@@+@@г9$listEEEF@А!a+&EEEE@@@1@@@-- @@@@@.0@@@.@@/31@@@EE@@N@@@9'replaceHFF FF@б@г!tFFFF@А!a@;P@20@Xs%@AFFFF@@@ @@@4 @@б#keyг5#keyFF#FF&@@ @@@5@@б$dataА!a'"FF/FF1@@г`$unitFF5FF9@@ @@@61@@9@@74FF* @@,!@@88FF @@@7@@9<:@@@FF @@1O@@@B#memI%F:FD&F:FG@б@гY!t0F:FM1F:FN@А!a@DP@<087788888@a|%@A>F:FJ?F:FL@@@ @@@> @@б@г#keyNF:FROF:FU@@ @@@?@@г*$bool[F:FY\F:F]@@ @@@@%@@@@@A(@@@&@@B+) @@@iF:F@@@P@@@1$iterJtF^FhuF^Fl@б!fб#keyгʠ#keyF^FvF^Fy@@ @@@E0@Pk%@A@@б$dataА!a@PP@FF^FF^F@@г$unitF^FF^F@@ @@@G@@@@H!F^F} @@3(@@I%F^Fr @@б@г㠐!tF^FF^F@А!a,6F^FF^F@@@2@@@K= @@г($unitF^FF^F@@ @@@LJ@@@@@MM@@b-@@NPF^Fo @@@F^Fd@@Q@@@W2filter_map_inplaceKFFFF@б!fб#keyг?#keyFFFF@@ @@@Q0@v%@A@@б$dataА!a@]P@RFFFF@@г&optionFFFF@А!aFF FF@@@@@@T& @@$@@U))FF@@;0@@V--FF@@б@г`!t7FF8FF@А!a4>>FF?FF@@@:@@@XE @@г$unitLFFMFF@@ @@@YR@@@@@ZU@@j-@@[XXFF @@@[FF@ɐ/ @since 4.03.0 gFFhFG@@@@@@@R@@l$foldLsGGtGG"@б!fб#keyгɠ#keyGG,GG/@@ @@@^0@2@A@@б$dataА!a@jP@_GG8GG:@@б@А!b@lP@`GG>GG@@@А!b "GGDGGF@@@@@a' @@% @@b*GG3@@<1@@c.GG( @@б@г렐!tGGNGGO@А!a5?GGKGGM@@@;@@@eF @@б$initА!b7NGGXGGZ@@А!b=TGG^GG`@@BB@@fYGGS@@@@@g]@@r4@@h`GG% @@@GG@@ S@@@g&lengthMGaGkGaGq@б@г,!t GaGw GaGx@А!a@sP@m0        @%@A GaGt GaGv@@@ @@@o @@гɠ#int GaG| GaG@@ @@@p@@@@@q@@@ *GaGg @@ AT@ @@%statsN 5GG 6GG@б@гi!t @GG AGG@А!a@zP@t0 H G G H H H H H@>Y%@A NGG OGG@@@ @@@v @@г*statistics \GG ]GG@@ @@@w@@@@@x@@@ gGG @@ ~U@ @@&to_seqO rGG sGG@б@г!t }GG ~GG@А!a@P@{0        @>Y%@A GG GG@@@ @@@} @@гd#Seq!t GG GG@Вг#key GG GG@@ @@@~&@@А!a0+ GG GG@@@7@@2@@@)@@@7 GG$@@@6@@;9'@@@ GG*@4- @since 4.07  GG GG@@@@@@@ V@9@N+to_seq_keysP GG GH@б@г!t GH GH@@@@0        @h-@A GH GH@@@ @@@ @@г#Seq!t!GH!GH@гR#key! GH !GH @@ @@@#@@@@@@( @@@&@@+)@@@!GG@- @since 4.07 !)HH!*HH,@@@@@@@!AW@)@>-to_seq_valuesQ!5H.H8!6H.HE@б@гi!t!@H.HK!AH.HL@А!a@P@0!H!G!G!H!H!H!H!H@]s2@A!NH.HH!OH.HJ@@@ @@@ @@г '#Seq!t!_H.HS!`H.HX@А!a!fH.HP!gH.HR@@@%@@@! @@@@@$"@@@!rH.H4@- @since 4.07 !~HYH_!HYHq@@@@@@@!X@"@7'add_seqR!HsH}!HsH@б@г!t!HsH!HsH@А!a@P@0!!!!!!!!@Vq2@A!HsH!HsH@@@ @@@ @@б@г ~#Seq!t!HsH!HsH@Вг#key!HsH!HsH@@ @@@(@@А!a2-!HsH!HsH@@@9@@4@@@)@@@9!HsH$@@г!;$unit!HsH!HsH@@ @@@G@@@@@J@@@H@@MK @@@!HsHy@ ^- @since 4.07 !HH!HH@@@@@@@"Y@@`+replace_seqS"HH" HH@б@г@@@&@@@. @@@@@1@@@"II@!H- @since 4.07 "IAIG"IAIY@@@@@@@"[@"@D@5/A@A@@n@g3@,@@E@>@@H@A@@*@#@@@@L@8@@(@@B@@0########@uD@A30########@\@A#D+D/# IZIa@@! H The output signature of the functor {!MakeSeeded}. @since 4.00.0 #,IbId#-II@@@@@@@#/DD@0#-#,#,#-#-#-#-#-@o@A@*MakeSeededQ#<II#=II@@Т!HVR#GII#HII@Р à0SeededHashedType#PII#QII@0#P#O#O#P#P#P#P#P@A@lA@d@@@^@W@@m@f@@X@Q @@@ @R@K@@e@Q@@@@@gZ#\@A:9@@УР砐'SeededS#II#II@0########@EW@P@U#]Z@A  @@預#key#II#II@(@8@@@Am!t@@@@@@@#II#IJ@@@@#^@@Aг !H #II @@( @@@!t#JJ#JJ@(А!a@KS@3?#JJ#JJ@@ Q@8 @A@A"'Hashtbl*MakeSeeded!tS@G@@@IO@B@@@#JJ #JJ1@@@@$_@@Aг!H#JJ@А!ah#JJ$JJ@@@&k@@@@ NS8@@@A]\@@@0@@@@[@@@XA@ ;S8A@A@A"76543@@@/21@@0@@@-A@ " ! @@@.@@@-@ @@@,! @@@+@@*@@)@@@@ @@@(@@@'@@&@@@@@@@%@@@$@@#@@@@%u@@@")y@@@!@@ @R@P@L@3>@@@0c@@@%G@@@@@@@@@@@@@H@@@@@@@@@@@@@@@@@@Z@@@@'@@@@@@@@@@@i}@@@@6@@@e@@@@@ @@ @MK>@:@|,@@@ @I@@@ 5@@@ @@@@@@@@@@@\@@@@@@@@@@@@@@@@@@@@p@@@@@@@@@@@s@q@mig~@@@YTL@@@@@@@@\@@@)@@@@@@@@@@  @@@@@@@@@@@۠@@@@@@@@@@@@@@@@}}@@@@@@@@@@S@@@@@@@9@7@3@%@@@@@@@@@ @@@ @@@@@@@@@@@@@@@$@@@ܠ@@@@@@@@@~@0r@@@$2gf@@@@@@@@@MK>@:@C,@@@$E2@@@@@@@@S@@@@$Wؠ(@@@Р@@@@@@@@@@@@@@@o@@@@$swvD@@@ɠ@@@@@U@@@@@@@@DB5@1@$-,Z@@@à@@@@@@@@@@@@@26@@y0%%%%%%%%@x@A%II@@$;  Functor building an implementation of the hashtable structure. The functor [Hashtbl.MakeSeeded] returns a structure containing a type [key] of keys and a type ['a t] of hash tables associating data of type ['a] to keys of type [key]. The operations perform similarly to those of the generic interface, but use the seeded hashing and equality functions specified in the functor argument [H] instead of generic equality and hashing. The [create] operation of the result structure supports the [~][random] optional parameter and returns randomized hash tables if [~random:true] is passed or if randomization is globally on (see {!Hashtbl.randomize}). @since 4.00.0 %J2J4%LM@@@@@@@%II@@%𐠠 $ {1 The polymorphic hash functions} %MM%MMA@@@@@@0%%%%%%%%@@A@A@@@@@@@@wv@fe@UT@CB@32@@@@@@@@@@qp@@VI&:`@A;$hash&-MDMJ&.MDMN@б@А!a@5T@1L&:MDMQ&;MDMS@@г%#int&CMDMW&DMDMZ@@ @@@2[@@@@@3^@@@&NMDMF @$ [Hashtbl.hash x] associates a nonnegative integer to any value of any type. It is guaranteed that if [x = y] or [Stdlib.compare x y = 0], then [hash x = hash y]. Moreover, [hash] always terminates, even on cyclic structures. &ZM[M]&[N NS@@@@@@@&ra@@q+seeded_hash&fNUN[&gNUNf@б@г&#int&qNUNi&rNUNl@@ @@@60&s&r&r&s&s&s&s&s@O,@A@@б@А!a@@@б@А!a@ET@?&NO&NO@@г&#int&NO &NO @@ @@@@+@@@@@A.@@@#@@B1& @@@7@@C4:@@@&NN@%h F [Hashtbl.hash_param meaningful total x] computes a hash value for [x], with the same properties as for [hash]. The two extra integer parameters [meaningful] and [total] give more precise control over hashing. Hashing performs a breadth-first, left-to-right traversal of the structure [x], stopping after [meaningful] meaningful nodes were encountered, or [total] nodes (meaningful or not) were encountered. If [total] as specified by the user exceeds a certain value, currently 256, then it is capped to that value. Meaningful nodes are: integers; floating-point numbers; strings; characters; booleans; and constant constructors. Larger values of [meaningful] and [total] means that more nodes are taken into account to compute the final hash value, and therefore collisions are less likely to happen. However, hashing takes longer. The parameters [meaningful] and [total] govern the tradeoff between accuracy and speed. As default choices, {!hash} and {!seeded_hash} take [meaningful = 10] and [total = 100]. 'OO' S/S[@@@@@@@'c@ @G1seeded_hash_param' S]Sc' S]St@б@г&Ǡ#int' S]Sw' S]Sz@@ @@@F0''''''''@`u,@A@@б@г&ؠ#int'. S]S~'/ S]S@@ @@@G@@б@г&砐#int'= S]S'> S]S@@ @@@H @@б@А!a@PT@I+'N S]S'O S]S@@г'#int'W S]S'X S]S@@ @@@J:@@@@@K=@@@#@@L@& @@@5@@MC8@@@I@@NFL@@@'k S]S_@%ِ A variant of {!hash_param} that is further parameterized by an integer seed. Usage: [Hashtbl.seeded_hash_param meaningful total seed x]. @since 4.00.0 'wSS'xT0TE@@@@@@@'d@#@Y@&%A@%%?@%+$@$$@$$,@$#@##`@#L"@""@"z"-@"!@!!Z@!F @  D@ 0@W@C@@a@LFA@W@@9@%@Z@F@f@2xsf;@a@@LG: @@5 2 -  @ <@@@@}@i2@@f@@0''''''''@h@AW'ϰ'c,='TGTJ@@@'c,,@'԰@#MapT'TLTS'TLTV@@Б'  Association tables over ordered types. This module implements applicative association tables, also known as finite maps or dictionaries, given a total ordering function over the keys. All operations over maps are purely applicative (no side-effects). The implementation uses balanced binary trees, and therefore searching and insertion take time logarithmic in the size of the map. For instance: {[ module IntPairs = struct type t = int * int let compare (x0,y0) (x1,y1) = match Stdlib.compare x0 x1 with 0 -> Stdlib.compare y0 y1 | c -> c end module PairsMap = Map.Make(IntPairs) let m = PairsMap.(empty |> add (0,1) "hello" |> add (1,0) "world") ]} This creates a new module [PairsMap], with a new type ['a PairsMap.t] of maps from [int * int] to ['a]. In this example, [m] contains [string] values so its type is [string PairsMap.t]. 'T]T_'2XSXW@@@@@@0''''''''@'&@&&JA@&%@%%h@%T%@$$@$$9@$%#@##v@#b# @""@""K@"7!@!!R@!> @  ,@ @@`@L@A@@o@@\@H@V@B@A@S@?@@@A@A@j@c/@(@@F@?@@^@J@@Q@J@c@O@@]@I@@K@7@S@?@@9@@|A@A@@@@@@po@`_@SR@BA@10@@@@@@@@@@@gf@ML@@2%@@ A@@w>@@ @  A@  A@  v@ o ;@ 4 @  @  _@ X @  @  w@ c @  @  j@ c @  |@ h@@v@o@@q@]@y@e@@_@@A@A@@@@@@@~}@qp@`_@ON@=<@-,@@@@@@@@@@kj@@PC@@@@u,@@@@Q)<e@A4б+OrderedTypeV)/4XYXg)04XYXr@БA(!tU)>6X}X)?6X}X@@8@@@A@@@@@)B6X}X@'; The type of the map keys. )N7XX)O7XX@@@@@@@@@)ff@@A@@0)N)M)M)N)N)N)N)N@[@A@'compareà)[9XX)\9XX@б@г(!t)f9XX)g9XX@@ @@@Q0)h)g)g)h)h)h)h)h@v3-@A@@б@г9!t)w9XX)x9XX@@ @@@R@@г).#int)9XX)9XX@@ @@@S@@@@@T!@@@'@@U$* @@@)9XX@(  A total ordering function over the keys. This is a two-argument function [f] such that [f e1 e2] is zero if the keys [e1] and [e2] are equal, [f e1 e2] is strictly negative if [e1] is smaller than [e2], and [f e1 e2] is strictly positive if [e1] is greater than [e2]. Example: a suitable ordering function is the generic structural comparison function {!Stdlib.compare}. ):XX)@ZjZ@@@@@@@)g@@7@jdA@O@@0))))))))@<Q@A0))))))))@@A)5XuXy)AZZ@@( ) Input signature of the functor {!Make}. )BZZ)BZZ@@@@@@@)4XYX[@ư@б!SY)DZZ)DZZ@БA(#keyW)FZZ)FZ[@@8@@@A@@@@@)FZZ@(F; The type of the map keys. )G[[ )G[[)@@@@@@@@@)i@@A@@0))))))))@A@`@@C6*h@A@A(!tX)I[+[;)I[+[<@А!a@W0********@ 828@@V@A@A@G@B@@@*I[+[1@(} 0 The type of maps from type [key] to type ['a]. *J[=[C*J[=[x@@@@@@@@@*3j@A*I[+[8* I[+[:@@@@@8"@A@A@I@B@@@@@ @@A@@0*#*"*"*#*#*#*#*#@ @A,@%emptyǠ*0L[z[*1L[z[@г>!t*9L[z[*:L[z[@А!a@]Y@Y0*A*@*@*A*A*A*A*A@?O$@A*GL[z[*HL[z[@@@ @@@[ @@@*PL[z[@(0 The empty map. *\M[[*]M[[@@@@@@@*tk@&@(is_emptyȠ*hO[[*iO[[@б@гx!t*sO[[*tO[[@А!a@dY@^0*{*z*z*{*{*{*{*{@;T2@A*O[[*O[[@@@ @@@` @@г*^$bool*O[[*O[[@@ @@@a@@@@@b@@@*O[[ @) % Test whether a map is empty or not. *P[[*P[[@@@@@@@*l@@,#memɠ*R\\ *R\\ @б@г預#key*R\\*R\\@@ @@@e0********@E`,@A@@б@гӠ!t*R\\*R\\@А!a@mY@f*R\\*R\\@@@ @@@h@@г*$bool*R\\*R\\"@@ @@@i+@@@@@j.@@@4@@k17 @@@*R\\@)d ] [mem x m] returns [true] if [m] contains a binding for [x], and [false] otherwise. +S\#\)+T\i\@@@@@@@+m@@D#addʠ+V\\+V\\@б#keyгG#key+V\\+V\\@@ @@@n0++++++++@_t.@A@@б$dataА!a@xY@o+0V\\+1V\\@@б@г@!t+;V\\+<V\\@А!a!+BV\\+CV\\@@@@@@q( @@гU!t+PV\\+QV\\@А!a,6+WV\\+XV\\@@@2@@@s= @@@@@t@@@>9@@uC+dV\\@@UJ@@vG+hV\\@@@+kV\\@)ِ  [add ~key ~data m] returns a map containing the same bindings as [m], plus a binding of [key] to [data]. If [key] was already bound in [m] to a value that is physically equal to [data], [m] is returned unchanged (the result of the function is then physically equal to [m]). Otherwise, the previous binding of [key] in [m] disappears. @before 4.03 Physical equality was not ensured. +wW\\+x]^D^@@@@@@@+n@*@[&updateˠ+_^^+_^^@б#keyг#key+_^^+_^^@@ @@@y0++++++++@v.@A@@б!fб@г+&option+_^^+_^^@А!a@Y@z+_^^+_^^@@@ @@@|"@@г+3&option+_^^+_^^@А!a0+_^^+_^^@@@ @@@~7 @@@@@:@@б@гޠ!t+_^^+_^^@А!a4J+_^^+_^^@@@:@@@Q @@г!t+_^^+_^^@А!aI_+_^^+_^^@@@O@@@f @@@@@i@@g4@@l,_^^@@~s@@p,_^^@@@, _^^@*w | [update ~key ~f m] returns a map containing the same bindings as [m], except for the binding of [key]. Depending on the value of [y] where [y] is [f (find_opt key m)], the binding of [key] is added, removed or updated. If [y] is [None], the binding is removed if it exists; otherwise, if [y] is [Some z] then [key] is associated to [z] in the resulting map. If [key] was already bound in [m] to a value that is physically equal to [z], [m] is returned unchanged (the result of the function is then physically equal to [m]). @since 4.06.0 ,`^^,jaHaP@@@@@@@,-o@*@)singleton̠,!laRa\,"laRae@б@гX#key,,laRag,-laRaj@@ @@@0,.,-,-,.,.,.,.,.@,@A@@б@А!a@Y@ ,?laRan,@laRap@@гM!t,HlaRaw,IlaRax@А!a,OlaRat,PlaRav@@@@@@$ @@@@@'@@@-@@*0@@@,^laRaX@*̐ { [singleton x y] returns the one-element map that contains a binding [y] for [x]. @since 3.12.0 ,jmaya,kpaa@@@@@@@,p@%@=&remove͠,vrbb ,wrbb@б@г#key,rbb,rbb@@ @@@0,,,,,,,,@Vk,@A@@б@г!t,rbb,rbb@А!a@Y@,rbb,rbb@@@ @@@@@г!t,rbb%,rbb&@А!a,,rbb",rbb$@@@ @@@3 @@@@@6@@@<@@9?@@@,rbb@+0 9 [remove x m] returns a map containing the same bindings as [m], except for [x] which is unbound in the returned map. If [x] was not in [m], [m] is returned unchanged (the result of the function is then physically equal to [m]). @before 4.03 Physical equality was not ensured. ,sb'b-,wc0ck@@@@@@@,q@%@L%mergeΠ,ycmcw,ycmc|@б!fб@г#key,zc~c,zc~c@@ @@@0,,,,,,,,@i~0@A@@б@г,n&option,zc~c,zc~c@А!a@Y@-zc~c-zc~c@@@ @@@@@б@г,&option-zc~c-zc~c@А!b@Y@3-"zc~c-#zc~c@@@ @@@:@@г,&option-0zc~c-1zc~c@А!c@Y@M-<zc~c-=zc~c@@@ @@@T@@@!@@W$@@@@@@ZC@@@`@@]c@@б@гZ!t-U{cc-V{cc@А!a[m-\{cc-]{cc@@@a@@@t @@б@гq!t-l{cc-m{cc@А!bV-s{cc-t{cc@@@\@@@ @@г!t-{cc-{cc@А!cQ-{cc-{cc@@@W@@@ @@@@@@@@6@@9@@N@@-zc~c@@@-ycmcs@,  [merge ~f m1 m2] computes a map whose keys are a subset of the keys of [m1] and of [m2]. The presence of each such binding, and the corresponding value, is determined with the function [f]. In terms of the [find_opt] operation, we have [find_opt x (merge f m1 m2) = f x (find_opt x m1) (find_opt x m2)] for any key [x], provided that [f x None None = None]. @since 3.12.0 -|cc-ee@@@@@@@-r@)@%unionϠ-ee-ee@б!fб@г#key-ee-ee@@ @@@0--------@0@A@@б@А!a@Y@ -ee-ee@@б@А!a -ee-ee@@г-Z&option-ee-ee@А!a%-ee-ee@@@#@@@, @@@'@@/@@@*@@2%@@@8@@5;@@б@г !t.ee.ee@А!a=E. ee.ee@@@C@@@L @@б@г"!t.ee.ee@А!aT\.$ee.%ee@@@Z@@@c @@г7!t.2ee.3ee@А!aiq.9ee.:ee@@@o@@@x @@@@@{@@@6@@~9@@N@@.Iee@@@.Lee@,  [union ~f m1 m2] computes a map whose keys are a subset of the keys of [m1] and of [m2]. When the same binding is defined in both arguments, the function [f] is used to combine them. This is a special case of [merge]: [union f m1 m2] is equivalent to [merge f' m1 m2], where - [f' _key None None = None] - [f' _key (Some v) None = Some v] - [f' _key None (Some v) = Some v] - [f' key (Some v1) (Some v2) = f key v1 v2] @since 4.03.0 .Xee.Yhh @@@@@@@.ps@)@'compareР.dh h.eh h@б#cmpб@А!a@Y@0.q.p.p.q.q.q.q.q@,@A.wh h#.xh h%@@б@А!a .h h).h h+@@г.2#int.h h/.h h2@@ @@@@@@!@@@@@$@@ @@б@г!t.h h:.h h;@А!a4/.h h7.h h9@@@:@@@6 @@б@г!t.h hB.h hC@А!aKF.h h?.h hA@@@Q@@@M @@г.s#int.h hG.h hJ@@ @@@Z@@@@@]@@@.@@`1 @@oF@@c.h h@@@.h h@-I Total ordering between maps. The first argument is a total ordering used to compare data associated with equal keys in the two maps. .hKhQ.hh@@@@@@@.t@!@w%equalѠ.hh.hh@б#cmpб@А!a@Y@0/../////@,@A/hh/hi@@б@А!a /hi/hi@@г.栐$bool/hi /hi@@ @@@@@@!@@@@@$@@ @@б@г1!t/,hi/-hi@А!a4//3hi/4hi@@@:@@@6 @@б@гH!t/Chi/Dhi @А!aKF/Jhi/Khi@@@Q@@@M @@г/'$bool/Xhi$/Yhi(@@ @@@Z@@@@@]@@@.@@`1 @@oF@@c/ghh@@@/jhh@-ؐ [equal ~cmp m1 m2] tests whether the maps [m1] and [m2] are equal, that is, contain equal keys and associate them with equal data. [cmp] is the equality predicate used to compare the data associated with the keys. /vi)i//wij'@@@@@@@/u@!@w$iterҠ/j)j3/j)j7@б!fб#keyг#key/j)j@/j)jC@@ @@@0////////@2@A@@б$dataА!a@Y@/j)jL/j)jN@@г/ $unit/j)jR/j)jV@@ @@@@@@@!/j)jG @@3(@@%/j)j< @@б@г͠!t/j)j^/j)j_@А!a,6/j)j[/j)j]@@@2@@@= @@г/6$unit/j)jc/j)jg@@ @@@J@@@@@M@@b-@@P/j)j9 @@@/j)j/@.Z  [iter ~f m] applies [f] to all bindings in map [m]. [f] receives the key as first argument, and the associated value as second argument. The bindings are passed to [f] in increasing order with respect to the ordering over the type of the keys. /jhjn/k;k@@@@@@@0v@@d$foldӠ0kk0kk@б!fб#keyгA#key0kk0kk@@ @@@000000000@2@A@@б$dataА!a@Y@0*kk0+kk@@б@А!b@Y@07kk08kk@@А!b "0=kk0>kk@@@@@' @@% @@*0Ekk@@<1@@.0Ikk @@б@гX!t0Skk0Tkk@А!a5?0Zkk0[kk@@@;@@@F @@б$initА!b7N0ikk0jkk@@А!b=T0okk0pkk@@BB@@Y0tkk@@@@@]@@r4@@`0{kk @@@0~kk@.쐠 [fold ~f m ~init] computes [(f kN dN ... (f k1 d1 init)...)], where [k1 ... kN] are the keys of all bindings in [m] (in increasing order), and [d1 ... dN] are the associated data. 0kk0lYl@@@@@@@0w@@t'for_allԠ0ll0ll@б!fб@гѠ#key0ll0ll@@ @@@000000000@0@A@@б@А!a@ Y@ 0ll0ll@@г0$bool0ll0ll@@ @@@@@@@@@@@%@@"( @@б@г۠!t0ll0ll@А!a*20ll0ll@@@0@@@9 @@г0$bool0ll0ll@@ @@@F@@@@@I@@\,@@ L0ll @@@0ll@/h z [for_all ~f m] checks if all the bindings of the map satisfy the predicate [f]. @since 3.12.0 1ll1m[md@@@@@@@1x@@`&existsՠ1mfmp1mfmv@б!fб@гM#key1!mfm{1"mfm~@@ @@@ 01#1"1"1#1#1#1#1#@}0@A@@б@А!a@Y@  14mfm15mfm@@г1 $bool1=mfm1>mfm@@ @@@@@@@@@@@%@@"( @@б@гW!t1Rmfm1Smfm@А!a*21Ymfm1Zmfm@@@0@@@9 @@г16$bool1gmfm1hmfm@@ @@@F@@@@@I@@\,@@L1smfmx @@@1vmfml@/䐠  [exists ~f m] checks if at least one binding of the map satisfies the predicate [f]. @since 3.12.0 1mm1nn(@@@@@@@1y@@`&filter֠1n*n41n*n:@б!fб@гɠ#key1n*n?1n*nB@@ @@@011111111@}0@A@@б@А!a@$Y@ 1n*nF1n*nH@@г1$bool1n*nL1n*nP@@ @@@@@@@@@@@%@@"( @@б@гӠ!t1n*nX1n*nY@А!a*21n*nU1n*nW@@@0@@@9 @@г蠐!t1n*n`1n*na@А!a?G1n*n]1n*n_@@@E@@@ N @@@@@!Q@@d4@@"T1n*n<@@@1n*n0@0h L [filter ~f m] returns the map with all the bindings in [m] that satisfy predicate [p]. If every binding in [m] satisfies [f], [m] is returned unchanged (the result of the function is then physically equal to [m]) @since 3.12.0 @before 4.03 Physical equality was not ensured. 2nbnh2oo@@@@@@@2z@&@h*filter_mapנ2oo2oo@б!fб@гM#key2!oo2"oo@@ @@@%02#2"2"2#2#2#2#2#@0@A@@б@А!a@3Y@& 24oo25oo@@г1&option2=oo2>oo@А!b@5Y@'"2Ioo2Joo@@@ @@@))@@@$@@*,@@@2@@+/5@@б@гd!t2_oo2`oo@А!a7?2foo2goo@@@=@@@-F @@гy!t2too2uoo@А!b7T2{oo2|oo@@@=@@@/[ @@@@@0^@@q4@@1a2oo@@@2oo@0  [filter_map ~f m] applies the function [f] to every binding of [m], and builds a map from the results. For each binding [(k, v)] in the input map: - if [f k v] is [None] then [k] is not in the result, - if [f k v] is [Some v'] then the binding [(k, v')] is in the output map. For example, the following function on maps whose values are lists {[ filter_map (fun _k li -> match li with [] -> None | _::tl -> Some tl) m ]} drops all bindings of [m] whose value is an empty list, and pops the first element of each value that is non-empty. @since 4.11.0 2op2rr@@@@@@@2{@&@u)partitionؠ2rr2rr@б!fб@гޠ#key2rr2rr@@ @@@6022222222@0@A@@б@А!a@EY@7 2rr2rr@@г2$bool2rr2rr@@ @@@8@@@@@9@@@%@@:"( @@б@г蠐!t2rr2rr@А!a*22rr2rr@@@0@@@<9 @@Вг !t2rs2rs@А!aBJ3rs3rs@@@H@@@>Q @@г !t3rs 3rs @А!aX`3rs 3rs @@@^@@@@g @@@ @@Al"@@@:@@Bo=@@R@@Cr3*rr@@@3-rr@1  [partition ~f m] returns a pair of maps [(m1, m2)], where [m1] contains all the bindings of [m] that satisfy the predicate [f], and [m2] is the map with all the bindings of [m] that do not satisfy [f]. @since 3.12.0 39ss3:tt!@@@@@@@3Q|@+@(cardinal٠3Et#t-3Ft#t5@б@г U!t3Pt#t:3Qt#t;@А!a@LY@F03X3W3W3X3X3X3X3X@2@A3^t#t73_t#t9@@@ @@@H @@г3#int3lt#t?3mt#tB@@ @@@I@@@@@J@@@3wt#t) @1吠 H Return the number of bindings of a map. @since 3.12.0 3tCtI3tt@@@@@@@3}@@,(bindingsڠ3tt3tt@б@г !t3tt3tt@А!a@VY@M033333333@Kf2@A3tt3tt@@@ @@@O @@г3K$list3tt3tt@Вг #key3tt3tt@@ @@@P#@@А!a-(3tt3tt@@@4@@Q/@@@&@@@S43tt$@@@3@@T86'@@@3tt*@2N  Return the list of all bindings of the given map. The returned list is sorted in increasing order of keys with respect to the ordering [Ord.compare], where [Ord] is the argument given to {!Stdlib.Map.Make}. @since 3.12.0 3tt3uu@@@@@@@4~@9@K+min_binding۠3uu3uu@б@г !t4uu4uu@А!a@^Y@W04 4 4 4 4 4 4 4 @j2@A4uu4uu@@@ @@@Y @@Вг N#key4"uu4#uu@@ @@@Z@@А!a#4-uv4.uv@@@*@@[%@@@#@@\(&47uv@@@4:uu@2 Return the binding with the smallest key in a given map (with respect to the [Ord.compare] ordering), or raise [Not_found] if the map is empty. @since 3.12.0 4Fvv 4Gvv@@@@@@@4^@@</min_binding_optܠ4Rvv4Svv@б@г b!t4]vv4^vv@А!a@hY@_04e4d4d4e4e4e4e4e@[v2@A4kvv4lvv@@@ @@@a @@г3&option4yvw4zvw@Вг #key4vv4vv@@ @@@b#@@А!a-(4vv4vw@@@4@@c/@@@&@@@e44vv$@@@3@@f86'@@@4vv*@3 Return the binding with the smallest key in the given map (with respect to the [Ord.compare] ordering), or [None] if the map is empty. @since 4.05 4w w4ww@@@@@@@4@9@K+max_bindingݠ4ww4ww@б@г ˠ!t4ww4ww@А!a@pY@i044444444@j2@A4ww4ww@@@ @@@k @@Вг #key4ww4ww@@ @@@l@@А!a#4ww4ww@@@*@@m%@@@#@@n(&4ww@@@4ww@3k Same as {!min_binding}, but returns the binding with the largest key in the given map. @since 3.12.0 5 ww5 xzx@@@@@@@5!@@</max_binding_optޠ5xx5xx@б@г %!t5 xx5!xx@А!a@zY@q05(5'5'5(5(5(5(5(@[v2@A5.xx5/xx@@@ @@@s @@г4&option5<xx5=xx@Вг u#key5Ixx5Jxx@@ @@@t#@@А!a-(5Txx5Uxx@@@4@@u/@@@&@@@w45`xx$@@@3@@x86'@@@5fxx*@3Ԑ Same as {!min_binding_opt}, but returns the binding with the largest key in the given map. @since 4.05 5rxx5sy?yH@@@@@@@5@9@K&chooseߠ5~yJyT5yJyZ@б@г !t5yJy_5yJy`@А!a@Y@{055555555@j2@A5yJy\5yJy^@@@ @@@} @@Вг Ԡ#key5yJye5yJyh@@ @@@~@@А!a#5yJyk5yJym@@@*@@%@@@#@@(&5yJyn@@@5yJyP@4. Return one binding of the given map, or raise [Not_found] if the map is empty. Which binding is chosen is unspecified, but equal bindings will be chosen for equal maps. @since 3.12.0 5yoyu5zLzU@@@@@@@5@@<*choose_opt5zWza5zWzk@б@г 蠐!t5zWzp5zWzq@А!a@Y@055555555@[v2@A5zWzm5zWzo@@@ @@@ @@г5s&option5zWz6zWz@Вг 8#key6 zWzv6 zWzy@@ @@@#@@А!a-(6zWz|6zWz~@@@4@@/@@@&@@@46#zWzu$@@@3@@86'@@@6)zWz]*@4 Return one binding of the given map, or [None] if the map is empty. Which binding is chosen is unspecified, but equal bindings will be chosen for equal maps. @since 4.05 65zz66 {W{`@@@@@@@6M@9@K%split6A{b{l6B{b{q@б@г x#key6L{b{s6M{b{v@@ @@@06N6M6M6N6N6N6N6N@d,@A@@б@г b!t6]{b{}6^{b{~@А!a@Y@6i{b{z6j{b{|@@@ @@@@@Вг !t6z{b{6{{b{@А!a/6{b{6{b{@@@#@@@6 @@г6&option6{b{6{b{@А!a3E6{b{6{b{@@@9@@@L @@г !t6{b{6{b{@А!aI[6{b{6{b{@@@O@@@b @@@4 @@h9@@@Q@@kT@@@q@@nt@@@6{b{h@50  [split x m] returns a triple [(l, data, r)], where [l] is the map with all the bindings of [m] whose key is strictly less than [x]; [r] is the map with all the bindings of [m] whose key is strictly greater than [x]; [data] is [None] if [m] contains no binding for [x], or [Some v] if [m] binds [v] to [x]. @since 3.12.0 6{{6}2};@@@@@@@6@+@$find6}=}G6}=}K@б@г #key6}=}M6}=}P@@ @@@066666666@,@A@@б@г !t6}=}W6}=}X@А!a@Y@7}=}T7}=}V@@@ @@@@@А!a"7 }=}\7}=}^@@@ @@'@@@-@@*0@@@7}=}C @5 r [find x m] returns the current value of [x] in [m], or raises [Not_found] if no binding for [x] exists. 7#}_}e7$}}@@@@@@@7;@@=(find_opt7/}}70}}@б@г f#key7:}}7;}}@@ @@@07<7;7;7<7<7<7<7<@Vk,@A@@б@г P!t7K}}7L}}@А!a@Y@7W}}7X}}@@@ @@@@@г6٠&option7e}~7f}~ @А!a,7l}~7m}~@@@ @@@3 @@@@@6@@@<@@9?@@@7{}}@5鐠 [find_opt x m] returns [Some v] if the current value of [x] in [m] is [v], or [None] if no binding for [x] exists. @since 4.05 7~ ~7!~~@@@@@@@7@%@L*find_first7#~~7#~~@б!fб@г Π#key7#~~7#~~@@ @@@077777777@i~0@A@@г7$bool7#~~7#~~@@ @@@@@@@@@@б@г Ƞ!t7#~~7#~~@А!a@Y@'7#~~7#~~@@@ @@@.@@Вг #key7#~~7#~~@@ @@@>@@А!a!C7#~~7#~~@@@(@@J@@@#@@M& @@`@@@P7#~~ @@@7#~~@6i  [find_first ~f m], where [f] is a monotonically increasing function, returns the binding of [m] with the lowest key [k] such that [f k], or raises [Not_found] if no such key exists. For example, [find_first (fun k -> Ord.compare k x >= 0) m] will return the first binding [k, v] of [m] where [Ord.compare k x >= 0] (intuitively: [k >= x]), or raise [Not_found] if [x] is greater than any element of [m]. @since 4.05 8$~~8.@@@@@@@8@@d.find_first_opt8080@б!fб@гN#key8"08#0@@ @@@08$8#8#8$8$8$8$8$@0@A@@г8$bool810 820 @@ @@@@@@@@@@б@гH!t8C08D0@А!a@Y@'8O08P0@@@ @@@.@@г7Ѡ&option8]0%8^0+@Вг#key8j08k0@@ @@@H@@А!a+M8u0!8v0#@@@2@@T@@@&@@@Y80$@@@3@@]6'@@pP@@`80+@@@80.@6 [find_first_opt ~f m], where [f] is a monotonically increasing function, returns an option containing the binding of [m] with the lowest key [k] such that [f k], or [None] if no such key exists. @since 4.05 81,285!,@@@@@@@8@=@t)find_last87.887.A@б!fб@гޠ#key87.F87.I@@ @@@088888888@0@A@@г8$bool87.M87.Q@@ @@@@@@@@@@б@гؠ!t87.Y87.Z@А!a@Y@'87.V87.X@@@ @@@.@@Вг#key87.^87.a@@ @@@>@@А!a!C87.d87.f@@@(@@J@@@#@@M& @@`@@@P97.C @@@9 7.4@7y [find_last ~f m], where [f] is a monotonically decreasing function, returns the binding of [m] with the highest key [k] such that [f k], or raises [Not_found] if no such key exists. @since 4.05 98gm9<OZ@@@@@@@9/@@d-find_last_opt9#>\f9$>\s@б!fб@г^#key92>\x93>\{@@ @@@09493939494949494@0@A@@г9$bool9A>\9B>\@@ @@@@@@@@@@б@гX!t9S>\9T>\@А!a@Y@'9_>\9`>\@@@ @@@.@@г8᠐&option9m>\9n>\@Вг#key9z>\9{>\@@ @@@H@@А!a+M9>\9>\@@@2@@T@@@&@@@Y9>\$@@@3@@]6'@@pP@@`9>\u+@@@9>\b.@8 [find_last_opt ~f m], where [f] is a monotonically decreasing function, returns an option containing the binding of [m] with the highest key [k] such that [f k], or [None] if no such key exists. @since 4.05 9?9D@@@@@@@9@=@t#map9F9F@б!fб@А!a@Y@099999999@,@A9F9F@@А!b@Y@ 9F9F@@@ @@@@б@г䠐!t9F9F@А!a'"9F9F@@@-@@@) @@г!t9F9F@А!b/79F9F@@@5@@@> @@@@@A@@P4@@D:F@@@: F@8y : [map ~f m] returns a map with same domain as [m], where the associated value [a] of all bindings of [m] has been replaced by the result of the application of [f] to [a]. The bindings are passed to [f] in increasing order with respect to the ordering over the type of the keys. :G:K@@@@@@@:/@&@X$mapi:#M *:$M .@б!fб@г^#key:2M 3:3M 6@@ @@@0:4:3:3:4:4:4:4:4@u0@A@@б@А!a@Y@ :EM ::FM <@@А!b@Y@:PM @:QM B@@@ @@@@@#@@ &@@б@гf!t:aM J:bM K@А!a(0:hM G:iM I@@@.@@@7 @@г{!t:vM R:wM S@А!b2E:}M O:~M Q@@@8@@@L @@@@@O@@b4@@R:M 0@@@:M &@8 Same as {!map}, but the function receives as arguments both the key and the associated value for each binding of the map. :NTZ:O@@@@@@@:@&@f:8 {1 Maps and Sequences} :Q:Q@@@@@@0::::::::@v#@A&to_seq:S :S @б@гƠ!t:S  :S !@А!a@Y@ :S :S @@@ @@@'@@г9#Seq!t:S 0:S 5@Вг#key:S &:S )@@ @@@D@@А!a.I:S ,:S .@@@5@@P@@@)@@@U;S %$@@@6@@Y9'@@@;S *@9v L Iterate on the whole map, in ascending order of keys @since 4.07 ;T6<;Uu@@@@@@@;,@9@l*to_rev_seq; W;!W@б@г0!t;+W;,W@А!a@Y@0;3;2;2;3;3;3;3;3@2@A;9W;:W@@@ @@@  @@г:#Seq!t;JW;KW@Вг#key;WW;XW@@ @@@ &@@А!a0+;bW;cW@@@7@@ 2@@@)@@@7;nW$@@@6@@;9'@@@;tW*@9␠ M Iterate on the whole map, in descending order of keys @since 4.12 ;X;Y@@@@@@@;@9@N+to_seq_from;[#;[.@б@гà#key;[1;[4@@ @@@0;;;;;;;;@g,@A@@б@г!t;[;;[<@А!a@Y@;[8;[:@@@ @@@@@г:#Seq!t;[K;[P@Вг#key;[A;[D@@ @@@;@@А!a.@;[G;[I@@@5@@G@@@)@@@L;[@$@@@6@@P9'@@@V@@SY*@@@;[-@:` [to_seq_from k m] iterates on a subset of the bindings of [m], in ascending order of keys, from key [k] or above. @since 4.07 ;\QW;^@@@@@@@<@<@f'add_seq< `< `@б@г:#Seq!t<`<`@ВгQ#key<%`<&` @@ @@@0<'<&<&<'<'<'<'<'@<@A@@А!a@*Y@ <7` <8`@@@ @@ @@@0@@@"@*@@)@@y:@&@@R@>@8@$ @  (@  @  4@  @  #@  @ o ;@ ' @  |@ h @ @V@B@@@@K@7@?@+@3@@E@ @b@N@b@N@@~=@A^]@@УР !S=j%V=j%W@0========@i{@t@y>~@A  @@"#key=kXf=kXi@(*@8@@@A!t@@@:@@@@>kXa>kXq@@@@>@@Aг #Ord >kXl @@( @@@!t>lr>lr@(%А!a@\@A?>(lr>)lr@@&@8 @A@A=#Map$Make!t\@@@@I@B@@@>=lr{>>lr@@@@>U@@Aг#Ord>Klr@А!ah>Qlr>Rlr@@@&k@@@@|\8@@@A]\@@@@@@@[@@@XA@i}\8A@A@A=876543@@@21@@0@@@-A@B~5@@@@&$@@ @@@@@@@@@@@4@@@@@@@@@@@@@@@@@@@{v@2{@@@6@@@@@@@@@@@>1@-)(@@@@@@@@@@@@@Q@@@U@@@@@@@@@@@@G@@@@d@@@@@@@@{yl@h@V@@@@sN@@@wR@@@@@@@@*(@@k@@@@@@@@@@@٠@@@@@@@@@@ @@@@@@@@@@@@@@@@@|zm@ie@@@@@T@VFY@@@@@@@@@@_@@@@e@@@~Ši@@@}@@|@@{@@z@@@@@@@y@@x@@w@ؠ@@@v@ޠ@@@u@@@t@@s@@r@@q@{yl@hd@_@aO@@@p@@o@@n@i@@@m@o@@@l@@@k@@j@@i@@h@@@@@g@@@f@@e@@d@@@@c@@@b@@a@@`@@ @@@_xs@hh@@^@@]@@\@+z@@@[>pp@@Z@@Y@@X@$"@ @!@@@W@@@@V@@U@@T@C@@@S@@@R@@Q@@P@@@:@@@O@@@@N@@M@@L@\@@@Kp@@@J@@I@@H@^\O@KG@S@@@G@6.@@@F@@E@@D@u>@@@CyB@@@B@@A@@@@   @  @m@@@?@  Ġ @@@>@@=@@<@ @@@; @@@:@@9@@8@ ~ | o@ k g@@@@7@ V N@@@6@@5@@4@ ^@@@3 e@@@1 j@@@2@@0@@/@@.@   @ @ @@@- @@@,@@+@   @ @͠ @@@* @@@) @@(@@@'@@&@ m k ^@ Z@ L@@@%@@@$ T@@#@@"@ $ " @ @ @@@! @@@  @@@@@@@@   @ @ @@@@@@ @@@@@   x@ t@ f@@@ X @@@ q@@@@@@@@ 3 1 $@ @. @@@@@@ @@@@@   @ @? @@@ 1@@@ @@ @@@ @@ @   @ @<@@@ @Y i@@@ ` p@@@ L u@@@j z@@@@@@@@@@   @ @\@@@@y @@@ @@@@@   @ @k@@@@ @@@  @@@@@@@@   w@ s o@@@@ a@@@@@@ J@@@@@@ R@@@@@@@ !  @  @@@@@@@@@@@@@٠@@@@@@@@@@@@@@@@@@@@@@@@ڠt@@@@@@|@@@@@@@KI<@84@@@@&@@@@@@@@@@@@ܠ@@@@@@@@@@@@@@@@@@@@@@@@@@|zm@ie@@@@@TI@@@@@%Y@@@)R@@@@@@@@@@3@@@@yҠ'@@@ʠ@@@@@@@@@@J@@@@~}>@@@Š@@@@@@@@XVI@E@I@@@@f+@@@@Z@@@8@@@@@@@@@@@@@ޠm@@@@@@@@@@@@@@@@@@@@~@z@@vu@@@_@@@@@c@@@@@@86)@@37@@0BBBBBBBB@@AB j%?@@@ \ Functor building an implementation of the map structure given a totally ordered type. B,mB-n@@@@@@@B/j%)@@@{E@v_@@ BR@@@0B:B9B9B:B:B:B:B:@@ӐʑA@A@@@@@@@|{@kj@BA@! @@@@@@@{z@ba@BA@76@$#@@@@@@@@@@ih@LK@32@@@@@@@@@wj\@Ah0BBBBBBBB@@ABTLTYBp@@@BTLTL@@#Set]Br Br@@БB  Sets over ordered types. This module implements the set data structure, given a total ordering function over the set elements. All operations over sets are purely applicative (no side-effects). The implementation uses balanced binary trees, and is therefore reasonably efficient: insertion and membership take time logarithmic in the size of the set, for instance. The {!Make} functor constructs implementations for any type, given a [compare] function. For instance: {[ module IntPairs = struct type t = int * int let compare (x0,y0) (x1,y1) = match Stdlib.compare x0 x1 with 0 -> Stdlib.compare y0 y1 | c -> c end module PairsSet = Set.Make(IntPairs) let m = PairsSet.(empty |> add (2,3) |> add (5,7) |> add (11,13)) ]} This creates a new module [PairsSet], with a new type [PairsSet.t] of sets of [int * int]. BsB@@@@@@0BBBBBBBB@@A@t;@@@ A@A@@t@@,@s@_@@p"@K@7@@@n@r@^@~@j@m@Y@@q@ @_@K@  @  H@ 4 @  J@ 6 @  @  @  @ u @  }@ i @@j@@0@@B@@J@@A@A@@@@@@po@cb@RQ@)(@@@@@@@zy@ba@IH@)(@@  @@@@@@@@zy@ih@PO@32@@@@@@@@yx@@^QC@@@@C@AŠб+OrderedType_C C@БA(!t^C"-C".@@8@@@A@@@@@C"(@B ? The type of the set elements. C/7C/[@@@@@@@@@C@@A@@0CCCCCCCC@@A@'compareC]gC]n@б@г(!tC]qC]r@@ @@@0CCCCCCCC@3-@A@@б@г9!tC]vC]w@@ @@@@@гC#intC]{C]~@@ @@@@@@@@!@@@'@@$* @@@C]c@BY  A total ordering function over the set elements. This is a two-argument function [f] such that [f e1 e2] is zero if the elements [e1] and [e2] are equal, [f e1 e2] is strictly negative if [e1] is smaller than [e2], and [f e1 e2] is strictly positive if [e1] is greater than [e2]. Example: a suitable ordering function is the generic structural comparison function {!Stdlib.compare}. CCT@@@@@@@D@@7@jdA@O@@0CCCCCCCC@<Q@A0CCCCCCCC@D@ADDU\@@Bs ) Input signature of the functor {!Make}. D]_D]@@@@@@@D@W@б!SbDD@БA(#elt`D-D.@@8@@@A@@@@@D1@B? The type of the set elements. D=D>@@@@@@@@@DU@@A@@0D=D<D<D=D=D=D=D=@A@`@@C6D_@A@A(!taDTDU@@8@@@A@@@@@DX@BƐ3 The type of sets. DdDe@@@@@@@@@D|@@A@@0DdDcDcDdDdDdDdDd@(@:@A@%emptyDrDs @г'!tD{"D|#@@ @@@0D}D|D|D}D}D}D}D}@2,@A@@@D @B󐠠0 The empty set. D$*D$?@@@@@@@D@@(is_emptyDAKDAS@б@гT!tDAUDAV@@ @@@0DDDDDDDD@.A,@A@@гD$boolDAZDA^@@ @@@@@@@@@@@DAG @C0 % Test whether a set is empty or not. D_eD_@@@@@@@D@@%#memDD@б@г#eltDD@@ @@@0DDDDDDDD@>S,@A@@б@г!tDD@@ @@@@@гDҠ$boolEE@@ @@@@@@@@!@@@'@@$* @@@E@C 5 [mem x s] tests whether [x] belongs to the set [s]. EE@@@@@@@E5@@7#addE)E*@б@г#eltE4E5@@ @@@0E6E5E5E6E6E6E6E6@Pe,@A@@б@г!tEE EF @@ @@@@@г!tERES@@ @@@@@@@@!@@@'@@$* @@@E`@Cΐ  [add x s] returns a set containing all elements of [s], plus [x]. If [x] was already in [s], [s] is returned unchanged (the result of the function is then physically equal to [s]). @before 4.03 Physical equality was not ensured. ElEm@@@@@@@E@@7)singletonEx(Ey1@б@гV#eltE3E6@@ @@@0EEEEEEEE@Pe,@A@@г>!tE:E;@@ @@@@@@@@@@@E$ @D @ [singleton x] returns the one-element set containing only [x]. E<BE<@@@@@@@E@@%&removeEE@б@г#eltEE@@ @@@0EEEEEEEE@>S,@A@@б@г}!tEE@@ @@@@@г!tEE@@ @@@@@@@@!@@@'@@$* @@@E@DZ  [remove x s] returns a set containing all elements of [s], except [x]. If [x] was not in [s], [s] is returned unchanged (the result of the function is then physically equal to [s]). @before 4.03 Physical equality was not ensured. EE{@@@@@@@F@@7%unionFF@б@г!tFF@@ @@@0FFFFFFFF@Pe,@A@@б@г̠!tF F!@@ @@@@@г٠!tF-F.@@ @@@@@@@@!@@@'@@$* @@@F;@D, Set union. FGFH@@@@@@@F_@@7%interFSFT@б@г !tF^F_@@ @@@0F`F_F_F`F`F`F`F`@Pe,@A@@б@г!tFoFp@@ @@@@@г(!tF| F} @@ @@@@@@@@!@@@'@@$* @@@F@D3 Set intersection. F F )@@@@@@@F@@7(disjointF+5F+=@б@гY!tF+?F+@@@ @@@0FFFFFFFF@Pe,@A@@б@гj!tF+DF+E@@ @@@@@гF$boolF+IF+M@@ @@@@@@@@!@@@'@@$* @@@F+1@EG 8 Test if two sets are disjoint. @since 4.08.0 FNTFw@@@@@@@F@@7$diffFF@б@г!tFF@@ @@@0FFFFFFFF@Pe,@A@@б@г!tG G@@ @@@@@гƠ!tGG@@ @@@@@@@@!@@@'@@$* @@@G(@E [ Set difference: [diff s1 s2] contains the elements of [s1] that are not in [s2]. G4G5@@@@@@@GL@@7'compareG@!GA(@б@г!tGK*GL+@@ @@@0GMGLGLGMGMGMGMGM@Pe,@A@@б@г!tG\/G]0@@ @@@@@гG#intGi4Gj7@@ @@@@@@@@!@@@'@@$* @@@Gw@E吠 d Total ordering between sets. Can be used as the ordering function for doing sets of sets. G8>G@@@@@@@G@@7%equalGG@б@гF!tGG@@ @@@0GGGGGGGG@Pe,@A@@б@гW!tGG@@ @@@@@гG$boolGG@@ @@@@@@@@!@@@'@@$* @@@G@F4 i [equal s1 s2] tests whether the sets [s1] and [s2] are equal, that is, contain equal elements. GG =@@@@@@@G@@7&subsetG?IG?O@б@г!tG?QG?R@@ @@@0GGGGGGGG@Pe,@A@@б@г!tG?VG?W@@ @@@@@гG֠$boolH?[H?_@@ @@@@@@@@!@@@'@@$* @@@H?E@F Q [subset s1 s2] tests whether the set [s1] is a subset of the set [s2]. H!`fH"@@@@@@@H9@@7$iterH-H.@б!fб@г#eltH<H=@@ @@@0H>H=H=H>H>H>H>H>@Ti0@A@@гG$unitHKHL@@ @@@@@@@@@@б@г !tH]H^@@ @@@!@@гGà$unitHjHk@@ @@@.@@@@@1@@D$@@4Hv @@@Hy@F琠 [iter ~f s] applies [f] in turn to all elements of [s]. The elements of [s] are presented to [f] in increasing order with respect to the ordering over the type of the elements. HHs@@@@@@@H@@H#mapHH@б!fб@гs#eltHH@@ @@@0HHHHHHHH@e~0@A@@г#eltHH@@ @@@@@@@@@@б@гm!tHH@@ @@@!@@гz!tHH@@ @@@.@@@@@1@@D$@@4H @@@H@GK  [map ~f s] is the set whose elements are [f a0],[f a1]... [f aN], where [a0],[a1]...[aN] are the elements of [s]. The elements are passed to [f] in increasing order with respect to the ordering over the type of the elements. If no element of [s] is changed by [f], [s] is returned unchanged. (If each output of [f] is physically equal to its input, the returned set is physically equal to [s].) @since 4.04.0 HH@@@@@@@I@@H$foldHH@б!fб@гנ#eltII@@ @@@0IIIIIIII@e~0@A@@б@А!a@ b@ II@@А!a II@@@@@ @@@@@!@@б@гڠ!tI.I/@@ @@@*@@б$initА!a*2I<I=@@А!a08IBIC@@55@@=IG@@@@@A@@T+@@DIN @@@IQ@G [fold ~f s init] computes [(f xN ... (f x2 (f x1 init))...)], where [x1 ... xN] are the elements of [s], in increasing order. I] I^O@@@@@@@Iu@@X'for_allIiIj@б!fб@гK#eltIxIy@@ @@@ 0IzIyIyIzIzIzIzIz@u0@A@@гIV$boolII@@ @@@ @@@@@ @@б@гE!tII@@ @@@!@@гIu$boolII@@ @@@.@@@@@1@@D$@@4I @@@I@H# V [for_all ~f s] checks if all elements of the set satisfy the predicate [f]. II-@@@@@@@I@@H&existsI/9I/?@б!fб@г#eltI/DI/G@@ @@@0IIIIIIII@e~0@A@@гI$boolI/KI/O@@ @@@@@@@@@@б@г!tI/TI/U@@ @@@!@@гI٠$boolJ /YJ /]@@ @@@.@@@@@1@@D$@@4J/A @@@J/5@H _ [exists ~f s] checks if at least one element of the set satisfies the predicate [f]. J%^dJ&@@@@@@@J=@@H&filterJ1J2@б!fб@г#eltJ@JA@@ @@@0JBJAJAJBJBJBJBJB@e~0@A@@гJ$boolJOJP@@ @@@@@@@@@@б@г !tJaJb@@ @@@!@@г!tJnJo@@ @@@.@@@@@1@@D$@@4Jz @@@J}@H될 $ [filter ~f s] returns the set of all elements in [s] that satisfy predicate [f]. If [f] satisfies every element in [s], [s] is returned unchanged (the result of the function is then physically equal to [s]). @before 4.03 Physical equality was not ensured.JJ%@@@@@@@J@@H*filter_mapJ'1J';@б!fб@гw#eltJ'@J'C@@ @@@ 0JJJJJJJJ@e~0@A@@гJ'&optionJ'KJ'Q@г#eltJ'GJ'J@@ @@@!@@@@@@# @@@$@@$!'@@б@г!tJ'VJ'W@@ @@@%0@@г!tJ'[J'\@@ @@@&=@@@@@'@@@S$@@(CJ'= @@@J'-@I^  [filter_map ~f s] returns the set of all [v] such that [f x = Some v] for some element [x] of [s]. For example, {[filter_map (fun n -> if n mod 2 = 0 then Some (n / 2) else None) s]} is the set of halves of the even elements of [s]. If no element of [s] is changed or dropped by [f] (if [f x = Some x] for each element [x]), then [s] is returned unchanged: the result of the function is then physically equal to [s]. @since 4.11.0 J]cJkt@@@@@@@K@@W)partitionKvK v@б!fб@гꠐ#eltKvKv@@ @@@)0KKKKKKKK@t0@A@@гJ$boolK&vK'v@@ @@@*@@@@@+@@б@г䠐!tK8vK9v@@ @@@,!@@Вг!tKHvKIv@@ @@@-1@@г!tKVvKWv@@ @@@.?@@@@@/D @@@)@@0G, @@Z:@@1JKgv@@@Kjv|@Iؐ [partition ~f s] returns a pair of sets [(s1, s2)], where [s1] is the set of all the elements of [s] that satisfy the predicate [f], and [s2] is the set of all the elements of [s] that do not satisfy [f]. KvKwu@@@@@@@K@#@^(cardinal KK@б@г9!tKK@@ @@@20KKKKKKKK@w,@A@@гKF#intKK@@ @@@3@@@@@4@@@K @J ) Return the number of elements of a set. KK@@@@@@@K@@%(elementsàKK@б@гv!tKK@@ @@@50KKKKKKKK@>S,@A@@гKn$listKK@г#eltK K@@ @@@6@@@@@@8 @@@$@@9!'@@@K@Ja Return the list of all elements of the given set. The returned list is sorted in increasing order with respect to the ordering [Ord.compare], where [Ord] is the argument given to {!Stdlib.Set.Make}. KL@@@@@@@L@)@4'min_eltĠL L @б@г !tLL@@ @@@:0LLLLLLLL@Mb,@A@@г#eltL%L&@@ @@@;@@@@@<@@@L0  @J Return the smallest element of the given set (with respect to the [Ord.compare] ordering), or raise [Not_found] if the set is empty. L<  &L="@@@@@@@LT@@%+min_elt_optŠLH$LI$@б@г!tLS$LT$@@ @@@=0LULTLTLULULULULU@>S,@A@@гK֠&optionLb$Lc$@г?#eltLl$Lm$@@ @@@>@@@@@@@ @@@$@@A!'@@@L|$@Jꐠ Return the smallest element of the given set (with respect to the [Ord.compare] ordering), or [None] if the set is empty. @since 4.05 L%L)@@@@@@@L@)@4'max_eltƠL+L+@б@гK!tL+L+@@ @@@B0LLLLLLLL@Mb,@A@@г#eltL+L+@@ @@@C@@@@@D@@@L+ @K' P Same as {!min_elt}, but returns the largest element of the given set. L,L-@@@@@@@L@@%+max_elt_optǠL/%L/0@б@г!tL/2L/3@@ @@@E0LLLLLLLL@>S,@A@@гL_&optionL/;L/A@гȠ#eltL/7L/:@@ @@@F@@@@@@H @@@$@@I!'@@@M/!@Ks q Same as {!min_elt_opt}, but returns the largest element of the given set. @since 4.05 M0BHM3@@@@@@@M)@)@4&chooseȠM5M5@б@гԠ!tM(5M)5@@ @@@J0M*M)M)M*M*M*M*M*@Mb,@A@@г #eltM75M85@@ @@@K@@@@@L@@@MB5 @K Return one element of the given set, or raise [Not_found] if the set is empty. Which element is chosen is unspecified, but equal elements will be chosen for equal sets. MN6MO8e@@@@@@@Mf@@%*choose_optɠMZ:M[:@б@г !tMe:Mf:@@ @@@M0MgMfMfMgMgMgMgMg@>S,@A@@гL蠐&optionMt:Mu:@г Q#eltM~:M:@@ @@@N@@@@@@P @@@$@@Q!'@@@M:@K Return one element of the given set, or [None] if the set is empty. Which element is chosen is unspecified, but equal elements will be chosen for equal sets. @since 4.05 M;M?@@@@@@@M@)@4%splitʠMAMA@б@г #eltMAMA@@ @@@R0MMMMMMMM@Mb,@A@@б@г n!tMAMA@@ @@@S@@Вг ~!tMAMA@@ @@@T!@@гM$boolMAMA@@ @@@U/@@г !tMAMA@@ @@@V=@@@# @@WC( @@@8@@XF;@@@L@@YIO@@@NA@Lp y [split x s] returns a triple [(l, present, r)], where [l] is the set of elements of [s] that are strictly less than [x]; [r] is the set of elements of [s] that are strictly greater than [x]; [present] is [false] if [s] contains no element equal to [x], or [true] if [s] contains an element equal to [x]. NBNHT@@@@@@@N&@#@\$findˠNJV`NJVd@б@г #eltN%JVfN&JVi@@ @@@Z0N'N&N&N'N'N'N'N'@u,@A@@б@г ⠐!tN6JVmN7JVn@@ @@@[@@г #eltNCJVrNDJVu@@ @@@\@@@@@]!@@@'@@^$* @@@NQJV\@L [find x s] returns the element of [s] equal to [x] (according to [Ord.compare]), or raise [Not_found] if no such element exists. @since 4.01.0 N]Kv|N^N/@@@@@@@Nu@@7(find_opt̠NiP1;NjP1C@б@г G#eltNtP1ENuP1H@@ @@@_0NvNuNuNvNvNvNvNv@Pe,@A@@б@г 1!tNP1LNP1M@@ @@@`@@гN&optionNP1UNP1[@г o#eltNP1QNP1T@@ @@@a(@@@@@@c- @@@"@@d0%@@@6@@e39@@@NP17@M [find_opt x s] returns the element of [s] equal to [x] (according to [Ord.compare]), or [None] if no such element exists. @since 4.05 NQ\bNT @@@@@@@N@,@F*find_first͠NVNV"@б!fб@г #eltNV'NV*@@ @@@f0NNNNNNNN@cx0@A@@гN$boolNV.NV2@@ @@@g@@@@@h@@б@г !tNV7NV8@@ @@@i!@@г נ#eltOV<OV?@@ @@@j.@@@@@k1@@D$@@l4OV$ @@@OV@M  [find_first ~f s], where [f] is a monotonically increasing function, returns the lowest element [e] of [s] such that [f e], or raises [Not_found] if no such element exists. For example, [find_first (fun e -> Ord.compare e x >= 0) s] will return the first element [e] of [s] where [Ord.compare e x >= 0] (intuitively: [e >= x]), or raise [Not_found] if [x] is greater than any element of [s]. @since 4.05 OW@FO a +@@@@@@@O7@@H.find_first_optΠO+c-7O,c-E@б!fб@г #eltO:c-JO;c-M@@ @@@m0O<O;O;O<O<O<O<O<@e~0@A@@гO$boolOIc-QOJc-U@@ @@@n@@@@@o@@б@г !tO[c-ZO\c-[@@ @@@p!@@гNܠ&optionOhc-cOic-i@г E#eltOrc-_Osc-b@@ @@@q8@@@@@@s= @@@"@@t@%@@S3@@uCOc-G@@@Oc-3@M [find_first_opt ~f s], where [f] is a monotonically increasing function, returns an option containing the lowest element [e] of [s] such that [f e], or [None] if no such element exists. @since 4.05 OdjpOhVa@@@@@@@O@-@W)find_lastϠOjcmOjcv@б!fб@г #eltOjc{Ojc~@@ @@@v0OOOOOOOO@t0@A@@гO$boolOjcOjc@@ @@@w@@@@@x@@б@г z!tOjcOjc@@ @@@y!@@г #eltOjcOjc@@ @@@z.@@@@@{1@@D$@@|4Ojcx @@@Ojci@NX [find_last ~f s], where [f] is a monotonically decreasing function, returns the highest element [e] of [s] such that [f e], or raises [Not_found] if no such element exists. @since 4.05 OkOos~@@@@@@@P@@H-find_last_optРPqPq@б!fб@г 䠐#eltPqPq@@ @@@}0PPPPPPPP@e~0@A@@гO$boolP qP!q@@ @@@~@@@@@@@б@г ޠ!tP2qP3q@@ @@@!@@гO&optionP?qP@q@г #eltPIqPJq@@ @@@8@@@@@@= @@@"@@@%@@S3@@CPZq@@@P]q@Nː [find_last_opt ~f s], where [f] is a monotonically decreasing function, returns an option containing the highest element [e] of [s] such that [f e], or [None] if no such element exists. @since 4.05 PirPjv@@@@@@@P@-@W'of_listѠPuxPvx@б@гP$listPxPx@г ]#eltPxPx@@ @@@0PPPPPPPP@z6@A@@@ @@@ @@г J!tPxPx@@ @@@@@@@@@@@Px @O [of_list l] creates a set from a list of elements. This is usually more efficient than folding [add] over the list, except perhaps for lists with many duplicated elements. @since 4.02.0 PyP|@@@@@@@P@@*Pː/ {1 Iterators} P~P~@@@@@@0PPPPPPPP@:Y#@A+to_seq_fromҠPP@б@г #eltPP@@ @@@@@б@г !tPP@@ @@@)@@гO#Seq!tPP@г ٠#eltQQ@@ @@@C@@@@@@H @@@%@@K(@@@7@@N:@@@Q@O [to_seq_from x s] iterates on a subset of the elements of [s] in ascending order, from [x] or above. @since 4.07 Q% Q&@@@@@@@Q=@,@a&to_seqӠQ1Q2@б@г 蠐!tQ<Q=@@ @@@0Q>Q=Q=Q>Q>Q>Q>Q>@zu,@A@@гP#Seq!tQNQO@г +#eltQXQY@@ @@@@@@@@@! @@@'@@$*@@@Qh@O֐ D Iterate on the whole set, in ascending order @since 4.07 QtQu @@@@@@@Q@)@7*to_rev_seqԠQ Q  @б@г 7!tQ #Q $@@ @@@0QQQQQQQQ@Pe,@A@@гPe#Seq!tQ ,Q 1@г z#eltQ (Q +@@ @@@@@@@@@! @@@'@@$*@@@Q @P% E Iterate on the whole set, in descending order @since 4.12 Q28Qj@@@@@@@Q@)@7'add_seqՠQQ@б@гP#Seq!tQQ@г #eltQQ@@ @@@0QQQQQQQQ@]r9@A@@@ @@@ @@б@г !tQQ@@ @@@@@г !tR R @@ @@@#@@@@@&@@@&@@)/ @@@R@P D Add the given elements to the set, in order. @since 4.07 R$R%@@@@@@@R<@@<&of_seq֠R0R1 @б@гQ#Seq!tR>R?@г#eltRHRI@@ @@@0RJRIRIRJRJRJRJRJ@b9@A@@@ @@@ @@г!tR\R]@@ @@@@@@@@@@@Rg @PՐ ; Build a set from the given bindings @since 4.07 Rs%RtMe@@@@@@@R@@*@PJA@+%A@ @  @  r@ ^ %@  @  @  P@ < @  @  i@ U @  @  @ n @  @  L@ 8@@t&@@=@)@@}@i3@@@s@_)@@j@V@@;@'@h@T@@c@O@@j@@0RRRRRRRR@l@A[0RRRRRRRR@@ARRfm@@QC * Output signature of the functor {!Make}. RnpRn@@@@@@@R@0RRRRRRRR@@A@$MakecRR@@Т#OrddRR@Р}+OrderedTypeSS@0SSSSSSSS@A@A@@|U@A@  @  @ l 3@  @  @  L@ 8 @  @  e@ Q @  @  T@ @ @  @ l @ @K@7@@N@:@@@zD@0 @@M@9@@B@.@o@[@@F@2@@M@9@@S{@Aba@@УРR!SSpSq@0SpSoSoSpSpSpSpSp@m@x@}S@A  @@T#eltSS@(\@8@@@A!t@@@@@@@SS@@@@S@@Aг #Ord S @@( @@@O!tSS@(W@8@@@AR~#Set$Make!t@@@$$@@@@SS@@@@S@@Aг#OrdS@@R@@@@je8@@@ADC@@@%@@@@B@@@?A@ke8@@@AR+*)(@@@%@@@@'@@@$A@pl@@@%@`^Q@Mm@ @@@%=@@@%@@%@/- @n@0@@@%@@@@%@@@%@@%@@%@@o@@@@%@-@@@%0@@@%@@%@@%@@p@#@@@%<@@@%@@%@t@pq@/@@@%@J@@@%M@@@%@@%@@%@EC6@2r@V@@@%@[@@@%^@@@%@@%@@%@ @ s@g@@@%@l@@@%o@@@%@@%@@%@   @ t@x@@@%@}@@@% @@@%@@%@@%@   |@ xu@@@@%@@@@%@@@%@@%@@%@ M K >@ :v@@@@%@@@@% @@@%@@%@@%@   @ w@@@@%@@@@% @@@%@@%@@%@   @ x@@@@%@@@@% @@@%@@%@@%@   @ y |@@@@% n@@@%@@%@@@@% W@@@%@@%@@%@ E C 6@ 2z .@@@@%@@@%@@%@@@@%@@@%@@%@@%@   @ { @@@@%@  @@%@@%@@@@%   @@%@@%@@%@   @ | @@@@% r@@@%@@%@@@@% [@@@%@@%@@%@ I G :@ 6} 2@@@@% $@@@%@@%@-@@@% @@@%@@%@@%@   @ ~ @%@@@% @@@%@@%@C@@@%F@@@%@@%@@%@   @  @;@@@%~ A@@@%}@@@%|@@%{@]@@@%z`@@@%y@@%x@@%w@ T R E@ A =@U@@@%v /@@@%u@@%t@s@@@%sy@@@%q}@@@%r@@%p@@%o@@%n@   @ @@@@%m @@@%l@@%k@   @ @@@@%j @@@%i@@@%h@@%g@   {@ w@@@@%f@@@%e@@%d@ Y W J@ F@@@@%c 6@@@%b@@@%a@@%`@   @ @@@@%_@@@%^@@%]@@@@@@%\ɠ@@@%[@@@%Z@@%Y@@@@@@%X@@@%W@@%V@}p@l@@@@%U\@@@%T@@@%S@@%R@CA4@0@@@@%Q@@@@%P@@@%M @@@%N @@@%O@@%L@@%K@@%J@@@@@@%I@@@@%H@@@%G@@%F@@%E@@@ @@@%D@(@@@%C@@@%B@@@%A@@%@@@%?@dbU@QM@$@@@%>?@@@%=@@%<@B@@@%;/@@@%:@@%9@@%8@@@:@@@%7@@@%6@@%5@X@@@%4ڠH@@@%3@@@%2@@%1@@%0@@@T@@@%/@@@%.@@%-@r@@@%,_@@@%+@@%*@@%)@om`@\X@j@@@%(J@@@%'@@%&@@@@%%3x@@@%$@@@%#@@%"@@%!@@@@@@% @@@%@@@%@@%@@@@@@%@@@@%Ub@@@%@@@%@@%@@%@r@n@@@@%Ut^]@@@%@@@%@@%@DB5@1@@@@%U! @@@%@@@%@@%@@@U@@@%@@@% @@@@% @@@% @@% @@% @@@U@@@%@@@%@@@%@@%@~q@@sw0@@#0VVVVVVVV@@AV5@@UY \ Functor building an implementation of the set structure given a totally ordered type. VVNs@@@@@@@VD@E@@z@3.!@@ W@@@0WWWWWWWW@@HGA@A@A@76@10@'&@@@@@@@@@@@@rq@^]@LK@87@$#@@@@@@@@@@@}|@cb@TS@A@@-,@@@@@@@@@@{n`@Al0WeWdWdWeWeWeWeWe@@AWjrWkux@@@Wmr@@@V7@/@/.L@@/@@@@@@ W@@@0WvWuWuWvWvWvWvWv@@A@@@s=@nd^A@?9A@#@@@r9@%@@d@P@@}@i0@@@4@ @`@L @  @  :@ & @  Q@ = @  @  @ } G@ 3 @  @  @ s =@ ) @  ~@ j "@ @O@;@|@h2@ @w@c*@@~@@ ~@@鑠#"A@A@@  @@@@@@@@@@~@po@a`@ML@98@'&@@@@@@@@@@~}@po@fe@XW@>=@/.@@@@@@@@@@lk@@VI;@@@@@A[@!t;@@@@"Q@@@@"P#intA@@@"O@@"N@@"M@'set.mliww@@+Stdlib__SetA.@!tO@@@@@@@@#intA@@@@@@@~@'map.mlivv@@+Stdlib__MapA>@#intA@@@5@!t@@@@4@@@3@@2@@1@+hashtbl.mli====@@/Stdlib__HashtblA>t@@@@:@@@@9$boolE@@@8@@7@@6@=L=P=L=i@@@J@!t@@@@:@@@@@@,<22-<22@@+aJ@@@@@@@@*@@@@@@@@A9282<B9282V@@@`@ H************************************************************************XAUUXAUa@ H XBbbXBb@ H OCaml XCXC@ H XDXDH@ H Jacques Garrigue, Kyoto University RIMS XEIIXEI@ H XFXF@ H Copyright 2001 Institut National de Recherche en Informatique et XGXG/@ H en Automatique. YH00YH0|@ H Y I}}Y I}@ H All rights reserved. This file is distributed under the terms of YJYJ@ H the GNU Lesser General Public License version 2.1, with the YKYKc@ H special exception on linking described in the file LICENSE. YLddYLd@ H Y"MY#M@ H************************************************************************Y(NY)NJ@ W NOTE: Do not edit this file directly. Edit templates/ and run tools/sync_stdlib_docs Y.PLLY/Q@ }* Extra labeled libraries. This meta-module provides labelized versions of the {!Hashtbl}, {!Map} and {!Set} modules. This module is intended to be used through [open MoreLabels] which replaces {!Hashtbl}, {!Map}, and {!Set} with their labeled counterparts. For example: {[ open MoreLabels Hashtbl.iter ~f:(fun ~key ~data -> g key data) table ]} Y4 q* Hash tables and hash functions. Hash tables are hashed association tables, with in-place modification. W栠8* {1 Generic interface} W٠ 7* The type of hash tables from type ['a] to type ['b]. W? thwart tools/sync_stdlib_docs Y@pD\YApD@ * [Hashtbl.create n] creates a new, empty hash table, with initial size [n]. For best results, [n] should be on the order of the expected number of elements that will be in the table. The table grows as needed, so [n] is just an initial guess. The optional [~][random] parameter (a boolean) controls whether the internal organization of the hash table is randomized at each execution of [Hashtbl.create] or deterministic over all executions. A hash table that is created with [~][random] set to [false] uses a fixed hash function ({!hash}) to distribute keys among buckets. As a consequence, collisions between keys happen deterministically. In Web-facing applications or other security-sensitive applications, the deterministic collision patterns can be exploited by a malicious user to create a denial-of-service attack: the attacker sends input crafted to create many collisions in the table, slowing the application down. A hash table that is created with [~][random] set to [true] uses the seeded hash function {!seeded_hash} with a seed that is randomly chosen at hash table creation time. In effect, the hash function used is randomly selected among [2^{30}] different hash functions. All these hash functions have different collision patterns, rendering ineffective the denial-of-service attack described above. However, because of randomization, enumerating all elements of the hash table using {!fold} or {!iter} is no longer deterministic: elements are enumerated in different orders at different runs of the program. If no [~][random] parameter is given, hash tables are created in non-random mode by default. This default can be changed either programmatically by calling {!randomize} or by setting the [R] flag in the [OCAMLRUNPARAM] environment variable. @before 4.00.0 the [~][random] parameter was not present and all hash tables were created in non-randomized mode. V w* Empty a hash table. Use [reset] instead of [clear] to shrink the size of the bucket table to its initial size. V l* Empty a hash table and shrink the size of the bucket table to its initial size. @since 4.00.0 VN (* Return a copy of the given hashtable. U蠠 9* [Hashtbl.add tbl ~key ~data] adds a binding of [key] to [data] in table [tbl]. Previous bindings for [key] are not removed, but simply hidden. That is, after performing {!remove}[ tbl key], the previous binding for [key], if any, is restored. (Same behavior as with association lists.) Uw z* [Hashtbl.find tbl x] returns the current binding of [x] in [tbl], or raises [Not_found] if no such binding exists. U * [Hashtbl.find_opt tbl x] returns the current binding of [x] in [tbl], or [None] if no such binding exists. @since 4.05 T * [Hashtbl.find_all tbl x] returns the list of all data associated with [x] in [tbl]. The current binding is returned first, then the previous bindings, in reverse order of introduction in the table. TN 7* [Hashtbl.mem tbl x] checks if [x] is bound in [tbl]. S * [Hashtbl.remove tbl x] removes the current binding of [x] in [tbl], restoring the previous binding if it exists. It does nothing if [x] is not bound in [tbl]. S 0* [Hashtbl.replace tbl ~key ~data] replaces the current binding of [key] in [tbl] by a binding of [key] to [data]. If [key] is unbound in [tbl], a binding of [key] to [data] is added to [tbl]. This is functionally equivalent to {!remove}[ tbl key] followed by {!add}[ tbl key data]. S g* [Hashtbl.iter ~f tbl] applies [f] to all bindings in table [tbl]. [f] receives the key as first argument, and the associated value as second argument. Each binding is presented exactly once to [f]. The order in which the bindings are passed to [f] is unspecified. However, if the table contains several bindings for the same key, they are passed to [f] in reverse order of introduction, that is, the most recent binding is passed first. If the hash table was created in non-randomized mode, the order in which the bindings are enumerated is reproducible between successive runs of the program, and even between minor versions of OCaml. For randomized hash tables, the order of enumeration is entirely random. The behavior is not specified if the hash table is modified by [f] during the iteration. R p* [Hashtbl.filter_map_inplace ~f tbl] applies [f] to all bindings in table [tbl] and update each binding depending on the result of [f]. If [f] returns [None], the binding is discarded. If it returns [Some new_val], the binding is update to associate the key to [new_val]. Other comments for {!iter} apply as well. @since 4.03.0 R * [Hashtbl.fold ~f tbl ~init] computes [(f kN dN ... (f k1 d1 init)...)], where [k1 ... kN] are the keys of all bindings in [tbl], and [d1 ... dN] are the associated values. Each binding is presented exactly once to [f]. The order in which the bindings are passed to [f] is unspecified. However, if the table contains several bindings for the same key, they are passed to [f] in reverse order of introduction, that is, the most recent binding is passed first. If the hash table was created in non-randomized mode, the order in which the bindings are enumerated is reproducible between successive runs of the program, and even between minor versions of OCaml. For randomized hash tables, the order of enumeration is entirely random. The behavior is not specified if the hash table is modified by [f] during the iteration. Qs * [Hashtbl.length tbl] returns the number of bindings in [tbl]. It takes constant time. Multiple bindings are counted once each, so [Hashtbl.length] gives the number of times [Hashtbl.iter] calls its first argument. Q <* After a call to [Hashtbl.randomize()], hash tables are created in randomized mode by default: {!create} returns randomized hash tables, unless the [~random:false] optional parameter is given. The same effect can be achieved by setting the [R] parameter in the [OCAMLRUNPARAM] environment variable. It is recommended that applications or Web frameworks that need to protect themselves against the denial-of-service attack described in {!create} call [Hashtbl.randomize()] at initialization time. Note that once [Hashtbl.randomize()] was called, there is no way to revert to the non-randomized default behavior of {!create}. This is intentional. Non-randomized hash tables can still be created using [Hashtbl.create ~random:false]. @since 4.00.0 P䠠 * Return [true] if the tables are currently created in randomized mode by default, [false] otherwise. @since 4.03.0 P? thwart tools/sync_stdlib_docs Yy&I&aYz&I&@ * Return a copy of the given hashtable. Unlike {!copy}, {!rebuild}[ h] re-hashes all the (key, value) entries of the original table [h]. The returned hash table is randomized if [h] was randomized, or the optional [random] parameter is true, or if the default is to create randomized hash tables; see {!create} for more information. {!rebuild} can safely be used to import a hash table built by an old version of the {!Hashtbl} module, then marshaled to persistent storage. After unmarshaling, apply {!rebuild} to produce a hash table for the current version of the {!Hashtbl} module. @since 4.12.0 P10* @since 4.00.0 O Z* Number of bindings present in the table. Same value as returned by {!length}. P "* Number of buckets in the table. O )* Maximal number of bindings per bucket. O䠠 * Histogram of bucket sizes. This array [histo] has length [max_bucket_length + 1]. The value of [histo.(i)] is the number of buckets whose size is [i]. Oɠ * [Hashtbl.stats tbl] returns statistics about the table [tbl]: number of buckets, size of the biggest bucket, distribution of buckets by size. @since 4.00.0 N * {1 Hash tables and Sequences} N堠 * Iterate on the whole table. The order in which the bindings appear in the sequence is unspecified. However, if the table contains several bindings for the same key, they appear in reversed order of introduction, that is, the most recent binding appears first. The behavior is not specified if the hash table is modified during the iteration. @since 4.07 Nw 5* Same as [Seq.map fst (to_seq m)] @since 4.07 N 5* Same as [Seq.map snd (to_seq m)] @since 4.07 M F* Add the given bindings to the table, using {!add} @since 4.07 M? J* Add the given bindings to the table, using {!replace} @since 4.07 L * Build a table from the given bindings. The bindings are added in the same order they appear in the sequence, using {!replace_seq}, which means that if two pairs have the same key, only the latest one will appear in the table. @since 4.07 LM;* {1 Functorial interface} L? * The functorial interface allows the use of specific comparison and hash functions, either for performance/security concerns, or because keys are not hashable/comparable with the polymorphic builtins. For instance, one might want to specialize a table for integer keys: {[ module IntHash = struct type t = int let equal i j = i=j let hash i = i land max_int end module IntHashtbl = Hashtbl.Make(IntHash) let h = IntHashtbl.create 17 in IntHashtbl.add h 12 "hello" ]} This creates a new module [IntHashtbl], with a new type ['a IntHashtbl.t] of tables from [int] to ['a]. In this example, [h] contains [string] values so its type is [string IntHashtbl.t]. Note that the new type ['a IntHashtbl.t] is not compatible with the type [('a,'b) Hashtbl.t] of the generic interface. For example, [Hashtbl.length h] would not type-check, you must use [IntHashtbl.length]. L1 "* The type of the hashtable keys. L /* The equality predicate used to compare keys. K * A hashing function on keys. It must be such that if two keys are equal according to [equal], then they have identical hash values as computed by [hash]. Examples: suitable ([equal], [hash]) pairs for arbitrary key types include - ([(=)], {!hash}) for comparing objects by structure (provided objects do not contain floats) - ([(fun x y -> compare x y = 0)], {!hash}) for comparing objects by structure and handling {!Stdlib.nan} correctly - ([(==)], {!hash}) for comparing objects by physical equality (e.g. for mutable or cyclic objects). K .* The input signature of the functor {!Make}. Kk0* @since 4.00.0 JW0* @since 4.05.0 H0* @since 4.03.0 F0* @since 4.00.0 E.* @since 4.07 EF.* @since 4.07 D.* @since 4.07 D.* @since 4.07 D%.* @since 4.07 C.* @since 4.07 CA /* The output signature of the functor {!Make}. B \* Functor building an implementation of the hashtable structure. The functor [Hashtbl.Make] returns a structure containing a type [key] of keys and a type ['a t] of hash tables associating data of type ['a] to keys of type [key]. The operations perform similarly to those of the generic interface, but use the hashing and equality functions specified in the functor argument [H] instead of generic equality and hashing. Since the hash function is not seeded, the [create] operation of the result structure always returns non-randomized hash tables. @\ "* The type of the hashtable keys. @3 /* The equality predicate used to compare keys. ? 4* A seeded hashing function on keys. The first argument is the seed. It must be the case that if [equal x y] is true, then [hash seed x = hash seed y] for any value of [seed]. A suitable choice for [hash] is the function {!Stdlib.Hashtbl.seeded_hash} below. ?c H* The input signature of the functor {!MakeSeeded}. @since 4.00.0 ?J? thwart tools/sync_stdlib_docs YDSDnYDSD@0* @since 4.05.0 <0* @since 4.03.0 :.* @since 4.07 9%.* @since 4.07 8Ѡ.* @since 4.07 8.* @since 4.07 8.* @since 4.07 7.* @since 4.07 7 I* The output signature of the functor {!MakeSeeded}. @since 4.00.0 6ݠ * Functor building an implementation of the hashtable structure. The functor [Hashtbl.MakeSeeded] returns a structure containing a type [key] of keys and a type ['a t] of hash tables associating data of type ['a] to keys of type [key]. The operations perform similarly to those of the generic interface, but use the seeded hashing and equality functions specified in the functor argument [H] instead of generic equality and hashing. The [create] operation of the result structure supports the [~][random] optional parameter and returns randomized hash tables if [~random:true] is passed or if randomization is globally on (see {!Hashtbl.randomize}). @since 4.00.0 43 %* {1 The polymorphic hash functions} 4$ * [Hashtbl.hash x] associates a nonnegative integer to any value of any type. It is guaranteed that if [x = y] or [Stdlib.compare x y = 0], then [hash x = hash y]. Moreover, [hash] always terminates, even on cyclic structures. 3 a* A variant of {!hash} that is further parameterized by an integer seed. @since 4.00.0 3n G* [Hashtbl.hash_param meaningful total x] computes a hash value for [x], with the same properties as for [hash]. The two extra integer parameters [meaningful] and [total] give more precise control over hashing. Hashing performs a breadth-first, left-to-right traversal of the structure [x], stopping after [meaningful] meaningful nodes were encountered, or [total] nodes (meaningful or not) were encountered. If [total] as specified by the user exceeds a certain value, currently 256, then it is capped to that value. Meaningful nodes are: integers; floating-point numbers; strings; characters; booleans; and constant constructors. Larger values of [meaningful] and [total] means that more nodes are taken into account to compute the final hash value, and therefore collisions are less likely to happen. However, hashing takes longer. The parameters [meaningful] and [total] govern the tradeoff between accuracy and speed. As default choices, {!hash} and {!seeded_hash} take [meaningful = 10] and [total = 100]. 3 * A variant of {!hash_param} that is further parameterized by an integer seed. Usage: [Hashtbl.seeded_hash_param meaningful total seed x]. @since 4.00.0 2 * Association tables over ordered types. This module implements applicative association tables, also known as finite maps or dictionaries, given a total ordering function over the keys. All operations over maps are purely applicative (no side-effects). The implementation uses balanced binary trees, and therefore searching and insertion take time logarithmic in the size of the map. For instance: {[ module IntPairs = struct type t = int * int let compare (x0,y0) (x1,y1) = match Stdlib.compare x0 x1 with 0 -> Stdlib.compare y0 y1 | c -> c end module PairsMap = Map.Make(IntPairs) let m = PairsMap.(empty |> add (0,1) "hello" |> add (1,0) "world") ]} This creates a new module [PairsMap], with a new type ['a PairsMap.t] of maps from [int * int] to ['a]. In this example, [m] contains [string] values so its type is [string PairsMap.t]. 2*<* The type of the map keys. 0Ӡ * A total ordering function over the keys. This is a two-argument function [f] such that [f e1 e2] is zero if the keys [e1] and [e2] are equal, [f e1 e2] is strictly negative if [e1] is smaller than [e2], and [f e1 e2] is strictly positive if [e1] is greater than [e2]. Example: a suitable ordering function is the generic structural comparison function {!Stdlib.compare}. 0 ** Input signature of the functor {!Make}. 0o<* The type of the map keys. 0F 1* The type of maps from type [key] to type ['a]. 01* The empty map. /Ԡ &* Test whether a map is empty or not. / ^* [mem x m] returns [true] if [m] contains a binding for [x], and [false] otherwise. /4 * [add ~key ~data m] returns a map containing the same bindings as [m], plus a binding of [key] to [data]. If [key] was already bound in [m] to a value that is physically equal to [data], [m] is returned unchanged (the result of the function is then physically equal to [m]). Otherwise, the previous binding of [key] in [m] disappears. @before 4.03 Physical equality was not ensured. .  }* [update ~key ~f m] returns a map containing the same bindings as [m], except for the binding of [key]. Depending on the value of [y] where [y] is [f (find_opt key m)], the binding of [key] is added, removed or updated. If [y] is [None], the binding is removed if it exists; otherwise, if [y] is [Some z] then [key] is associated to [z] in the resulting map. If [key] was already bound in [m] to a value that is physically equal to [z], [m] is returned unchanged (the result of the function is then physically equal to [m]). @since 4.06.0 .' |* [singleton x y] returns the one-element map that contains a binding [y] for [x]. @since 3.12.0 -ՠ :* [remove x m] returns a map containing the same bindings as [m], except for [x] which is unbound in the returned map. If [x] was not in [m], [m] is returned unchanged (the result of the function is then physically equal to [m]). @before 4.03 Physical equality was not ensured. -t * [merge ~f m1 m2] computes a map whose keys are a subset of the keys of [m1] and of [m2]. The presence of each such binding, and the corresponding value, is determined with the function [f]. In terms of the [find_opt] operation, we have [find_opt x (merge f m1 m2) = f x (find_opt x m1) (find_opt x m2)] for any key [x], provided that [f x None None = None]. @since 3.12.0 , * [union ~f m1 m2] computes a map whose keys are a subset of the keys of [m1] and of [m2]. When the same binding is defined in both arguments, the function [f] is used to combine them. This is a special case of [merge]: [union f m1 m2] is equivalent to [merge f' m1 m2], where - [f' _key None None = None] - [f' _key (Some v) None = Some v] - [f' _key None (Some v) = Some v] - [f' key (Some v1) (Some v2) = f key v1 v2] @since 4.03.0 + * Total ordering between maps. The first argument is a total ordering used to compare data associated with equal keys in the two maps. +d * [equal ~cmp m1 m2] tests whether the maps [m1] and [m2] are equal, that is, contain equal keys and associate them with equal data. [cmp] is the equality predicate used to compare the data associated with the keys. *ؠ * [iter ~f m] applies [f] to all bindings in map [m]. [f] receives the key as first argument, and the associated value as second argument. The bindings are passed to [f] in increasing order with respect to the ordering over the type of the keys. *Y * [fold ~f m ~init] computes [(f kN dN ... (f k1 d1 init)...)], where [k1 ... kN] are the keys of all bindings in [m] (in increasing order), and [d1 ... dN] are the associated data. )ʠ {* [for_all ~f m] checks if all the bindings of the map satisfy the predicate [f]. @since 3.12.0 )Q * [exists ~f m] checks if at least one binding of the map satisfies the predicate [f]. @since 3.12.0 (ؠ M* [filter ~f m] returns the map with all the bindings in [m] that satisfy predicate [p]. If every binding in [m] satisfies [f], [m] is returned unchanged (the result of the function is then physically equal to [m]) @since 3.12.0 @before 4.03 Physical equality was not ensured. (W * [filter_map ~f m] applies the function [f] to every binding of [m], and builds a map from the results. For each binding [(k, v)] in the input map: - if [f k v] is [None] then [k] is not in the result, - if [f k v] is [Some v'] then the binding [(k, v')] is in the output map. For example, the following function on maps whose values are lists {[ filter_map (fun _k li -> match li with [] -> None | _::tl -> Some tl) m ]} drops all bindings of [m] whose value is an empty list, and pops the first element of each value that is non-empty. @since 4.11.0 'ɠ  * [partition ~f m] returns a pair of maps [(m1, m2)], where [m1] contains all the bindings of [m] that satisfy the predicate [f], and [m2] is the map with all the bindings of [m] that do not satisfy [f]. @since 3.12.0 '* I* Return the number of bindings of a map. @since 3.12.0 &㠠  * Return the list of all bindings of the given map. The returned list is sorted in increasing order of keys with respect to the ordering [Ord.compare], where [Ord] is the argument given to {!Stdlib.Map.Make}. @since 3.12.0 &} * Return the binding with the smallest key in a given map (with respect to the [Ord.compare] ordering), or raise [Not_found] if the map is empty. @since 3.12.0 && * Return the binding with the smallest key in the given map (with respect to the [Ord.compare] ordering), or [None] if the map is empty. @since 4.05 % * Same as {!min_binding}, but returns the binding with the largest key in the given map. @since 3.12.0 %i * Same as {!min_binding_opt}, but returns the binding with the largest key in the given map. @since 4.05 % * Return one binding of the given map, or raise [Not_found] if the map is empty. Which binding is chosen is unspecified, but equal bindings will be chosen for equal maps. @since 3.12.0 $ * Return one binding of the given map, or [None] if the map is empty. Which binding is chosen is unspecified, but equal bindings will be chosen for equal maps. @since 4.05 $F * [split x m] returns a triple [(l, data, r)], where [l] is the map with all the bindings of [m] whose key is strictly less than [x]; [r] is the map with all the bindings of [m] whose key is strictly greater than [x]; [data] is [None] if [m] contains no binding for [x], or [Some v] if [m] binds [v] to [x]. @since 3.12.0 # s* [find x m] returns the current value of [x] in [m], or raises [Not_found] if no binding for [x] exists. #^ * [find_opt x m] returns [Some v] if the current value of [x] in [m] is [v], or [None] if no binding for [x] exists. @since 4.05 " * [find_first ~f m], where [f] is a monotonically increasing function, returns the binding of [m] with the lowest key [k] such that [f k], or raises [Not_found] if no such key exists. For example, [find_first (fun k -> Ord.compare k x >= 0) m] will return the first binding [k, v] of [m] where [Ord.compare k x >= 0] (intuitively: [k >= x]), or raise [Not_found] if [x] is greater than any element of [m]. @since 4.05 " * [find_first_opt ~f m], where [f] is a monotonically increasing function, returns an option containing the binding of [m] with the lowest key [k] such that [f k], or [None] if no such key exists. @since 4.05 ! * [find_last ~f m], where [f] is a monotonically decreasing function, returns the binding of [m] with the highest key [k] such that [f k], or raises [Not_found] if no such key exists. @since 4.05 !v * [find_last_opt ~f m], where [f] is a monotonically decreasing function, returns an option containing the binding of [m] with the highest key [k] such that [f k], or [None] if no such key exists. @since 4.05  頠 ;* [map ~f m] returns a map with same domain as [m], where the associated value [a] of all bindings of [m] has been replaced by the result of the application of [f] to [a]. The bindings are passed to [f] in increasing order with respect to the ordering over the type of the keys.  | * Same as {!map}, but the function receives as arguments both the key and the associated value for each binding of the map. 9* {1 Maps and Sequences}  M* Iterate on the whole map, in ascending order of keys @since 4.07  N* Iterate on the whole map, in descending order of keys @since 4.12  * [to_seq_from k m] iterates on a subset of the bindings of [m], in ascending order of keys, from key [k] or above. @since 4.07  E* Add the given bindings to the map, in order. @since 4.07 ! <* Build a map from the given bindings @since 4.07  +* Output signature of the functor {!Make}. Q ]* Functor building an implementation of the map structure given a totally ordered type.  * Sets over ordered types. This module implements the set data structure, given a total ordering function over the set elements. All operations over sets are purely applicative (no side-effects). The implementation uses balanced binary trees, and is therefore reasonably efficient: insertion and membership take time logarithmic in the size of the set, for instance. The {!Make} functor constructs implementations for any type, given a [compare] function. For instance: {[ module IntPairs = struct type t = int * int let compare (x0,y0) (x1,y1) = match Stdlib.compare x0 x1 with 0 -> Stdlib.compare y0 y1 | c -> c end module PairsSet = Set.Make(IntPairs) let m = PairsSet.(empty |> add (2,3) |> add (5,7) |> add (11,13)) ]} This creates a new module [PairsSet], with a new type [PairsSet.t] of sets of [int * int].  * The type of the set elements.  * A total ordering function over the set elements. This is a two-argument function [f] such that [f e1 e2] is zero if the elements [e1] and [e2] are equal, [f e1 e2] is strictly negative if [e1] is smaller than [e2], and [f e1 e2] is strictly positive if [e1] is greater than [e2]. Example: a suitable ordering function is the generic structural comparison function {!Stdlib.compare}.  ** Input signature of the functor {!Make}.  * The type of the set elements. 4* The type of sets. \1* The empty set. 2 &* Test whether a set is empty or not.  6* [mem x s] tests whether [x] belongs to the set [s].  * [add x s] returns a set containing all elements of [s], plus [x]. If [x] was already in [s], [s] is returned unchanged (the result of the function is then physically equal to [s]). @before 4.03 Physical equality was not ensured. ` A* [singleton x] returns the one-element set containing only [x]. & * [remove x s] returns a set containing all elements of [s], except [x]. If [x] was not in [s], [s] is returned unchanged (the result of the function is then physically equal to [s]). @before 4.03 Physical equality was not ensured. ڠ-* Set union. 4* Set intersection. B 9* Test if two sets are disjoint. @since 4.08.0  \* Set difference: [diff s1 s2] contains the elements of [s1] that are not in [s2].  e* Total ordering between sets. Can be used as the ordering function for doing sets of sets. ^ j* [equal s1 s2] tests whether the sets [s1] and [s2] are equal, that is, contain equal elements.  R* [subset s1 s2] tests whether the set [s1] is a subset of the set [s2]. Ơ * [iter ~f s] applies [f] in turn to all elements of [s]. The elements of [s] are presented to [f] in increasing order with respect to the ordering over the type of the elements. e * [map ~f s] is the set whose elements are [f a0],[f a1]... [f aN], where [a0],[a1]...[aN] are the elements of [s]. The elements are passed to [f] in increasing order with respect to the ordering over the type of the elements. If no element of [s] is changed by [f], [s] is returned unchanged. (If each output of [f] is physically equal to its input, the returned set is physically equal to [s].) @since 4.04.0  * [fold ~f s init] computes [(f xN ... (f x2 (f x1 init))...)], where [x1 ... xN] are the elements of [s], in increasing order.  W* [for_all ~f s] checks if all elements of the set satisfy the predicate [f]. 2 `* [exists ~f s] checks if at least one element of the set satisfies the predicate [f]. Ѡ %* [filter ~f s] returns the set of all elements in [s] that satisfy predicate [f]. If [f] satisfies every element in [s], [s] is returned unchanged (the result of the function is then physically equal to [s]). @before 4.03 Physical equality was not ensured.p  * [filter_map ~f s] returns the set of all [v] such that [f x = Some v] for some element [x] of [s]. For example, {[filter_map (fun n -> if n mod 2 = 0 then Some (n / 2) else None) s]} is the set of halves of the even elements of [s]. If no element of [s] is changed or dropped by [f] (if [f x = Some x] for each element [x]), then [s] is returned unchanged: the result of the function is then physically equal to [s]. @since 4.11.0  * [partition ~f s] returns a pair of sets [(s1, s2)], where [s1] is the set of all the elements of [s] that satisfy the predicate [f], and [s2] is the set of all the elements of [s] that do not satisfy [f].  ** Return the number of elements of a set. O * Return the list of all elements of the given set. The returned list is sorted in increasing order with respect to the ordering [Ord.compare], where [Ord] is the argument given to {!Stdlib.Set.Make}.  * Return the smallest element of the given set (with respect to the [Ord.compare] ordering), or raise [Not_found] if the set is empty. ̠ * Return the smallest element of the given set (with respect to the [Ord.compare] ordering), or [None] if the set is empty. @since 4.05  Q* Same as {!min_elt}, but returns the largest element of the given set. I r* Same as {!min_elt_opt}, but returns the largest element of the given set. @since 4.05  * Return one element of the given set, or raise [Not_found] if the set is empty. Which element is chosen is unspecified, but equal elements will be chosen for equal sets.  Ơ * Return one element of the given set, or [None] if the set is empty. Which element is chosen is unspecified, but equal elements will be chosen for equal sets. @since 4.05  } z* [split x s] returns a triple [(l, present, r)], where [l] is the set of elements of [s] that are strictly less than [x]; [r] is the set of elements of [s] that are strictly greater than [x]; [present] is [false] if [s] contains no element equal to [x], or [true] if [s] contains an element equal to [x].  * [find x s] returns the element of [s] equal to [x] (according to [Ord.compare]), or raise [Not_found] if no such element exists. @since 4.01.0  * [find_opt x s] returns the element of [s] equal to [x] (according to [Ord.compare]), or [None] if no such element exists. @since 4.05  e * [find_first ~f s], where [f] is a monotonically increasing function, returns the lowest element [e] of [s] such that [f e], or raises [Not_found] if no such element exists. For example, [find_first (fun e -> Ord.compare e x >= 0) s] will return the first element [e] of [s] where [Ord.compare e x >= 0] (intuitively: [e >= x]), or raise [Not_found] if [x] is greater than any element of [s]. @since 4.05   * [find_first_opt ~f s], where [f] is a monotonically increasing function, returns an option containing the lowest element [e] of [s] such that [f e], or [None] if no such element exists. @since 4.05  * [find_last ~f s], where [f] is a monotonically decreasing function, returns the highest element [e] of [s] such that [f e], or raises [Not_found] if no such element exists. @since 4.05  3 * [find_last_opt ~f s], where [f] is a monotonically decreasing function, returns an option containing the highest element [e] of [s] such that [f e], or [None] if no such element exists. @since 4.05  à * [of_list l] creates a set from a list of elements. This is usually more efficient than folding [add] over the list, except perhaps for lists with many duplicated elements. @since 4.02.0  z0* {1 Iterators}  l * [to_seq_from x s] iterates on a subset of the elements of [s] in ascending order, from [x] or above. @since 4.07   E* Iterate on the whole set, in ascending order @since 4.07  Ġ F* Iterate on the whole set, in descending order @since 4.12  x E* Add the given elements to the set, in order. @since 4.07   <* Build a set from the given bindings @since 4.07 Π +* Output signature of the functor {!Make}. c ]* Functor building an implementation of the set structure given a totally ordered type. P@L)../ocamlc0-strict-sequence(-absname"-w8+a-4-9-41-42-44-45-48-70"-g+-warn-error"+A*-bin-annot)-nostdlib*-principal,-safe-string/-strict-formats#-pp #gawk -f ./expand_module_aliases.awk"-o6stdlib__MoreLabels.cmi"-c.moreLabels.mli :/home/barsac/ci/builds/workspace/step-by-step-build/stdlib @0] վi0[][\[\[][][][][]@[[@@8CamlinternalFormatBasics0cEXyG>F@@@@@e@@A@11ٰM7Mb@@  99@ 2 1KKLPLO@@-]-\@**@@@o@nKK@5412::@@@ΰFF@*?*>AA@|{<<@@E0E/@KnKm@  @?@@@A+@BB.@@21@4W4V@@@JJ@@/g/f242344̰W2W1Z5ZG@QPذGFU U@@  @۰5554@((@,h,gPP@ + *''A`A_@@:9#N#M98??@OO@@ v u76@!!Ӱ22?7?6FCFB@11@@:r:q@  @@!Z!Y@"!UU@O^@HiHhXX@@""@ %-%,@%%ưSnSm@  @&&''@##@QdQc@WW@YY@  @  @1a1`V5V4@"b"aLaL`@@KK@??X3X2@??IIM4M3@@@@GG@24A@WW@MMNuN@/M/L@@32::;;B;B@$$88JJ@M M @))DEL@@@ 3 2@1(1'MM@RR@  ð$$>>>w>v@ v u66Y@-L-K@@@((HjHi@SSVV@@A|A~R]Rm@@d@{@zSrSqYAY@@00ɰGG@':'9FFNN@@@@