package fmlib

  1. Overview
  2. Docs
Functional monadic library

Install

Dune Dependency

Authors

Maintainers

Sources

0.1.0.tar.gz
sha256=0558665285e4d7691e5a80c90ab05a7acb86c09f03ceef6589f150f6d3574573
md5=fb61f4d6e7233cf8d1d71758e6110c1e

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

Module String.From_sourceSource

Conversion of a source of characters to a string.

Parameters

module S : Interfaces.SOURCE with type item = char

Signature

Sourceval make : S.t -> t

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

Sourceval 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.