Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Source file base.ml
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364(** Standard library extension (mostly). *)(** Type of pretty-printing functions. *)type'app=Format.formatter->'a->unit(** Short name for a standard formatter. *)type'aoutfmt=('a,Format.formatter,unit)format(** Short name for a standard formatter with continuation. *)type('a,'b)koutfmt=('a,Format.formatter,unit,unit,unit,'b)format6letout=Format.fprintflet(++)(p1:'app)(p2:'bpp):('a*'b)pp=funppf(arg1,arg2)->outppf"%a%a"p1arg1p2arg2let(|+)p1p2:'app=funppfarg->(p1++p2)ppf((),arg)let(+|)p1p2:'app=funppfarg->(p1++p2)ppf(arg,())letint:intpp=Format.pp_print_intletchar:charpp=Format.pp_print_charletstring:stringpp=Format.pp_print_stringletfloat:floatpp=funppf->outppf"%f"letunit:unitoutfmt->unitpp=funfmtppf()->outppffmtletsep:string->unitpp=funsff()->stringffsletpp_if:bool->'app->'app=funbppppfarg->ifbthenoutppf"%a"ppargletprefix:string->'app->'app=funsppppfx->outppf"%s%a"sppxletsuffix:'app->string->'app=funppsppfx->outppf"%a%s"ppxs(** Type of comparison functions. *)type'acmp='a->'a->int(** Comparison function through a map. *)letcmp_map:'bcmp->('a->'b)->'acmp=funcmpbfa1a2->cmpb(fa1)(fa2)(** Tag comparison function. *)letcmp_tag:'acmp=funtt'->cmp_mapStdlib.compare(funt->Obj.tag(Obj.reprt))tt'(** Lexicographic comparison. *)letlex:'acmp->'bcmp->('a*'b)cmp=funcmpacmpb(a1,b1)(a2,b2)->matchcmpaa1a2with|0->cmpbb1b2|n->nletlex3:'acmp->'bcmp->'ccmp->('a*'b*'c)cmp=funcmpacmpbcmpc(a1,b1,c1)(a2,b2,c2)->lexcmpa(lexcmpbcmpc)(a1,(b1,c1))(a2,(b2,c2))(** Type of equality functions. *)type'aeq='a->'a->boolleteq_of_cmp:'acmp->'aeq=funcmpxy->cmpxy=0moduleInt=structtypet=intletcompare=(-)end