mirror of
https://github.com/c-cube/iter.git
synced 2025-12-06 11:15:32 -05:00
better pp_seq
This commit is contained in:
parent
b946b7157b
commit
fa18a7ba83
1 changed files with 6 additions and 3 deletions
|
|
@ -683,7 +683,10 @@ let pp_seq ?(sep=", ") pp_elt formatter seq =
|
|||
let first = ref true in
|
||||
iter
|
||||
(fun x ->
|
||||
(if !first then first := false else Format.pp_print_string formatter sep);
|
||||
pp_elt formatter x;
|
||||
Format.pp_print_cut formatter ())
|
||||
(if !first then first := false
|
||||
else begin
|
||||
Format.pp_print_string formatter sep;
|
||||
Format.pp_print_cut formatter ();
|
||||
end);
|
||||
pp_elt formatter x)
|
||||
seq
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue