File tree Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Original file line number Diff line number Diff line change 1212
1313package clojure .lang ;
1414
15- import java .util .List ;
1615import java .util .Comparator ;
1716
1817public class PersistentTreeSet extends APersistentSet implements Reversible , Sorted {
1918static public final PersistentTreeSet EMPTY = new PersistentTreeSet (null , PersistentTreeMap .EMPTY );
2019
2120
22- public static PersistentTreeSet create (List init ){
23- PersistentTreeSet ret = EMPTY ;
24- for (Object key : init )
25- {
26- ret = (PersistentTreeSet ) ret .cons (key );
27- }
28- return ret ;
29- }
30-
31- public static PersistentTreeSet create (Comparator comp , List init ){
32- PersistentTreeSet ret = new PersistentTreeSet (null , new PersistentTreeMap (null , comp ));
33- for (Object key : init )
34- {
35- ret = (PersistentTreeSet ) ret .cons (key );
36- }
37- return ret ;
38- }
39-
4021static public PersistentTreeSet create (ISeq items ){
4122 PersistentTreeSet ret = EMPTY ;
4223 for (; items != null ; items = items .next ())
You can’t perform that action at this time.
0 commit comments