Module Csv.Helper
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 usingwriter
. Ifnot is_first
writer ","; writer (to_string t)
. Ifis_last
thenwriter (to_string t); writer "\n"
.