Up

Module Name

Signature

val matches : pattern:string -> string -> bool

matches ~pattern name returns true iff name matches pattern.

For instance, the exact set of names such that matches ~pattern:"foo.bar.blah" name is:

  • "foo.bar.blah"
  • "bar.blah"
  • "blah"
val fold_dot_suffixes : string -> init:'a -> f:(string -> 'a -> 'a) -> 'a

fold_dot_suffixes "foo.bar.blah" ~init ~f is f "foo.bar.blah" (f "bar.blah" (f "blah" init)))

val get_outer_namespace : string -> string option
module Registrar : sig .. end