package transept

  1. Overview
  2. Docs
Generalized parser combinator library

Install

Dune Dependency

Authors

Maintainers

Sources

0.1.0.tar.gz
sha256=670634cc4be9a297c0f7174b61136e528a9d58ceab3ed78d71ef4680e4721e8b
md5=292994b959f2c2a55b9c1b2e10a09211

doc/transept.utils/Transept_utils/Utils/index.html

Module Transept_utils.Utils

Describes the basic functions

Basic functions

val constant : 'a -> 'b -> 'a

Produce a function that returns its first argument. const a b returns always a.

val uncurry : ('a -> 'b -> 'c) -> ('a * 'b) -> 'c

Produce the uncurryfied version of the parametric function. uncurry f (x, y) is equivalent f x y.

val curry : (('a * 'b) -> 'c) -> 'a -> 'b -> 'c

Produce the curryfied version of the parametric function curry f x y is equivalent f (x, y).

val chars_of_string : string -> char list

Transform a string to a characters list.

val string_of_chars : char list -> string

Transform a characters list to a string.

OCaml

Innovation. Community. Security.