From 10c0576d91be8ab2cd1b09af4967acee599277aa Mon Sep 17 00:00:00 2001 From: Fardale Date: Mon, 28 Oct 2019 00:32:03 +0100 Subject: [PATCH] add `CCArrayLabels.to_string` --- src/core/CCArrayLabels.mli | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/core/CCArrayLabels.mli b/src/core/CCArrayLabels.mli index 126acd4a..b14e42e4 100644 --- a/src/core/CCArrayLabels.mli +++ b/src/core/CCArrayLabels.mli @@ -245,6 +245,11 @@ val random_choose : 'a t -> 'a random_gen (** [random_choose a rs] randomly chooses an element of [a]. @raise Not_found if the array/slice is empty. *) +val to_string : ?sep:string -> ('a -> string) -> 'a array -> string +(** [to_string ~sep item_to_string a] print [a] to a string using [sep] as a separator + between elements of [a]. + @since NEXT_RELEASE *) + val to_seq : 'a t -> 'a sequence (** [to_seq a] returns a [sequence] of the elements of an array [a]. The input array [a] is shared with the sequence and modification of it will result