@@ -47,8 +47,8 @@ public static <K, V> TreeMap<K, V> empty(final Ord<K> keyOrd) {
4747 * @param p2s The elements to construct the tree map with.
4848 * @return a TreeMap with the given elements.
4949 */
50- public static <K , V > TreeMap <K , V > map (final Ord <K > keyOrd , final P2 <K , V > ... p2s ) {
51- return map (keyOrd , List .list (p2s ));
50+ public static <K , V > TreeMap <K , V > treeMap (final Ord <K > keyOrd , final P2 <K , V >... p2s ) {
51+ return treeMap (keyOrd , List .list (p2s ));
5252 }
5353
5454 /**
@@ -58,7 +58,7 @@ public static <K, V> TreeMap<K, V> map(final Ord<K> keyOrd, final P2<K, V> ... p
5858 * @param list The elements to construct the tree map with.
5959 * @return a TreeMap with the given elements.
6060 */
61- public static <K , V > TreeMap <K , V > map (final Ord <K > keyOrd , final List <P2 <K , V >> list ) {
61+ public static <K , V > TreeMap <K , V > treeMap (final Ord <K > keyOrd , final List <P2 <K , V >> list ) {
6262 TreeMap <K , V > tm = empty (keyOrd );
6363 for (final P2 <K , V > p2 : list ) {
6464 tm = tm .set (p2 ._1 (), p2 ._2 ());
@@ -249,7 +249,7 @@ public P3<Set<V>, Option<V>, Set<V>> split(Ord<V> ord, final K k) {
249249 * @param s The elements to construct the tree map with.
250250 * @return a TreeMap with the given elements.
251251 */
252- private static <K , V > TreeMap <K , V > map (Ord <K > ord , Set <P2 <K , Option <V >>> s ) {
252+ private static <K , V > TreeMap <K , V > treeMap (Ord <K > ord , Set <P2 <K , Option <V >>> s ) {
253253 TreeMap <K , V > empty = TreeMap .<K , V >empty (ord );
254254 TreeMap <K , V > tree = s .toList ().foldLeft ((tm , p2 ) -> {
255255 Option <V > opt = p2 ._2 ();
@@ -278,7 +278,7 @@ private static <K, V> TreeMap<K, V> map(Ord<K> ord, Set<P2<K, Option<V>>> s) {
278278 public P3 <TreeMap <K , V >, Option <V >, TreeMap <K , V >> splitLookup (final K k ) {
279279 P3 <Set <P2 <K , Option <V >>>, Option <P2 <K , Option <V >>>, Set <P2 <K , Option <V >>>> p3 = tree .split (P .p (k , get (k )));
280280 Ord <K > o = tree .ord ().<K >comap (k2 -> P .p (k2 , Option .<V >none ()));
281- return P .p (map (o , p3 ._1 ()), get (k ), map (o , p3 ._3 ()));
281+ return P .p (treeMap (o , p3 ._1 ()), get (k ), treeMap (o , p3 ._3 ()));
282282 }
283283
284284 /**
0 commit comments