package containers

  1. Overview
  2. Docs
On This Page
  1. Run methods
Legend:
Library
Module
Module type
Parameter
Class
Class type
val slurp : Pervasives.in_channel -> string t

Slurp the whole channel in (blocking), returning the corresponding string. The channel will be read at most once during execution, and its content cached; however the channel might never get read because evaluation is lazy.

val slurp_file : string -> string t

Read a whole file (given by name) and return its content as a string

val lines : string t -> string t

Convert a string into a collection of lines

val lines' : string t -> string list t

Convert a string into a list of lines

val join : string -> string t -> string t
val unlines : string t -> string t

Join lines together

val out : Pervasives.out_channel -> string t -> unit
val out_lines : Pervasives.out_channel -> string t -> unit

Evaluate the query and print it line by line on the output

Run methods
val to_file : string -> string t -> unit with_err
val to_file_exn : string -> string t -> unit
val to_file_lines : string -> string t -> unit with_err
val to_file_lines_exn : string -> string t -> unit
OCaml

Innovation. Community. Security.