module Rows: sig
.. end
Accessing rows (when a header was provided).
: Csv.in_channel -> string list
The header declared for this channel.
: ?replace:bool -> Csv.in_channel -> string list -> unit
set_header ic headers
set the new header for all
subsequent reads on
ic
(previously read
Csv.Row.t
values are
unaffected). This is useful for example to compose an unusual
header after reading several lines of the CSV data.
replace
: When
false
(the default), if an entry in
headers
is
""
, the previous name (if any) is kept (see the
header
parameter of
Csv.of_in_obj
). When
true
, an entry
""
means there is no access by name for that column.
val next : Csv.in_channel -> Csv.Row.t
See
Csv.next
. If no header was declared for the channel,
this function will work but only access using
Csv.Row.get
will
work.
val fold_left : f:('a -> Csv.Row.t -> 'a) -> init:'a -> Csv.in_channel -> 'a
val fold_right : f:(Csv.Row.t -> 'a -> 'a) -> Csv.in_channel -> 'a -> 'a
val iter : f:(Csv.Row.t -> unit) -> Csv.in_channel -> unit
val input_all : Csv.in_channel -> Csv.Row.t list
val load : ?separator:char ->
?strip:bool ->
?has_header:bool ->
?header:string list ->
?backslash_escape:bool ->
?excel_tricks:bool -> ?fix:bool -> string -> Csv.Row.t list
val current : Csv.in_channel -> Csv.Row.t