package core_unix

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

As similar APIs in In_channel, but using an intermediate Iobuf; considerably faster.

type 'a channel_op_with_opts := ?fix_win_eol:bool -> ?buf:(Core.read_write, Iobuf.seek) Iobuf.t -> Core.In_channel.t -> 'a
val fold_lines : (init:'a -> f:('a -> string -> 'a) -> 'a) channel_op_with_opts
val iter_lines : (f:(string -> unit) -> unit) channel_op_with_opts
val input_lines : string array channel_op_with_opts
val fold_lines_raw : (init:'a -> f:('a -> (Core.read_write, Iobuf.seek) Iobuf.t -> 'a) -> 'a) channel_op_with_opts

More efficient than fold_lines because no string allocation/copying.

OCaml

Innovation. Community. Security.