package rosa

  1. Overview
  2. Docs

Module Rosa.PatternSource

Pattern related operations

Sourceval repeat : int -> string -> string

Repeats a given string by given number of times. Raises failure if given number of repetitions is less then zero.

  Rosa.Pattern.repeat 3 "Rosa ";;
  - : string = "Rosa Rosa Rosa "
OCaml

Innovation. Community. Security.