1package ds.util;
2
3import ds.util.K;
4import ds.util.V;
5
6public final
7 class KV {
8 public final K fst;
9 public final V snd;
10
11 private KV(K k, V v) {
12 fst = k;
13 snd = v;
14 }
15
16 public String toString() {
17 return
18 "(" + fst.toString() +
19 ", " + snd.toString() +
20 ")";
21 }
22
23
24 public static KV mkPair(K k, V v) {
25 return
26 new KV(k, v);
27 }
28}