Reviewed By: ngorogiannis Differential Revision: D27996962 fbshipit-source-id: ad07bafd3master
parent
ac3ec112e8
commit
de4ad53ebc
@ -0,0 +1,14 @@
|
|||||||
|
(*
|
||||||
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||||
|
*
|
||||||
|
* This source code is licensed under the MIT license found in the
|
||||||
|
* LICENSE file in the root directory of this source tree.
|
||||||
|
*)
|
||||||
|
|
||||||
|
open! NS0
|
||||||
|
include CCRAL
|
||||||
|
|
||||||
|
let pp ?pre ?suf sep pp_elt fs ral =
|
||||||
|
List.pp ?pre ?suf sep pp_elt fs (to_list ral)
|
||||||
|
|
||||||
|
let fold l s ~f = fold ~f:(fun s x -> f x s) ~x:s l
|
@ -0,0 +1,18 @@
|
|||||||
|
(*
|
||||||
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||||
|
*
|
||||||
|
* This source code is licensed under the MIT license found in the
|
||||||
|
* LICENSE file in the root directory of this source tree.
|
||||||
|
*)
|
||||||
|
|
||||||
|
open! NS0
|
||||||
|
include module type of CCRAL
|
||||||
|
|
||||||
|
val pp :
|
||||||
|
?pre:(unit, unit) fmt
|
||||||
|
-> ?suf:(unit, unit) fmt
|
||||||
|
-> (unit, unit) fmt
|
||||||
|
-> 'a pp
|
||||||
|
-> 'a t pp
|
||||||
|
|
||||||
|
val fold : 'a t -> 's -> f:('a -> 's -> 's) -> 's
|
Loading…
Reference in new issue