package fmlib

  1. Overview
  2. Docs
Functional monadic library

Install

Dune Dependency

Authors

Maintainers

Sources

0.2.0.tar.gz
sha256=d47f6539af49a4c3e947dbfbe416c1e78d534897cd6d9d8e3660aae0cf8d9494
md5=d649b8a62403362bd3a24cbf1a9af590

doc/fmlib.fmlib_std/Fmlib_std/String/From_source/index.html

Module String.From_source

Conversion of a source of characters to a string.

Parameters

module S : Interfaces.SOURCE with type item = char

Signature

val make : S.t -> t

make s Convert the stream s of characters to a string.

val make_with_size : int -> S.t -> t

make_with_size n s Convert the stream s of characters to a string where n is an estimate of the length of the string.

The function works internally with a buffer. n is used to guide the buffer allocation and the resizing of the buffer. The better the estimate, the fewer buffer allocations and resizes are necessary.

OCaml

Innovation. Community. Security.