package csvfields

  1. Overview
  2. Docs
val prepend_name : string list -> (_, _) Core.Field.t -> string list

Prepend the name of a field to the list of fields. This function is Fields.fold friendly.

val add : int -> int -> _ -> int

Add the two integer parameters. This function is Fields.fold friendly

val write : is_first:bool -> is_last:bool -> writer:(string -> unit) -> to_string:('a -> string) -> _ -> _ -> 'a -> unit

write ~is_first ~is_last ~writer ~to_string _ _ t writes the contents of a field using writer. If not is_first writer ","; writer (to_string t). If is_last then writer (to_string t); writer "\n".

OCaml

Innovation. Community. Security.