package wu-manber-fuzzy-search

  1. Overview
  2. Docs

Patterns with both fold right and fold left operations.

include PatternWithFoldRight
include PatternWithElemEquality
include Pattern
type t

The type of patterns.

val length : t -> int
include ElemsWithEquality
include Elems
type elem

The type of characters in the patterns.

val elem_eq : elem -> elem -> bool

Operation to check if two characters are equal.

val fold_right : (elem -> 'a -> 'a) -> t -> 'a -> 'a
val fold_left : ('a -> elem -> 'a) -> 'a -> t -> 'a