diff options
| author | Hugo Herbelin | 2018-05-23 13:35:29 +0200 |
|---|---|---|
| committer | Hugo Herbelin | 2018-05-23 18:50:10 +0200 |
| commit | d8851bbd50df1f77af0aabfe98bebd44fcb4aa02 (patch) | |
| tree | 8c2385ac275d1ef50cc6b8c4c34ff8a58c115aca /lib/rtree.mli | |
| parent | bb2d7f94ba8688f57dc62ca72a857b82368aa784 (diff) | |
Moving Rtree.smart_map into Rtree.Smart.map.
Diffstat (limited to 'lib/rtree.mli')
| -rw-r--r-- | lib/rtree.mli | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/rtree.mli b/lib/rtree.mli index 8edfc3d37f..5ab14f6039 100644 --- a/lib/rtree.mli +++ b/lib/rtree.mli @@ -74,13 +74,22 @@ val incl : ('a -> 'a -> bool) -> ('a -> 'a -> 'a option) -> 'a -> 'a t -> 'a t - (** Iterators *) +(** See also [Smart.map] *) val map : ('a -> 'b) -> 'a t -> 'b t -(** [(smartmap f t) == t] if [(f a) ==a ] for all nodes *) val smartmap : ('a -> 'a) -> 'a t -> 'a t +(** @deprecated Same as [Smart.map] *) (** A rather simple minded pretty-printer *) val pp_tree : ('a -> Pp.t) -> 'a t -> Pp.t val eq_rtree : ('a -> 'a -> bool) -> 'a t -> 'a t -> bool (** @deprecated Same as [Rtree.equal] *) + +module Smart : +sig + + (** [(Smart.map f t) == t] if [(f a) ==a ] for all nodes *) + val map : ('a -> 'a) -> 'a t -> 'a t + +end |
