Merge: lib/string: some cleaning, doc and unit tests
[nit.git] / lib / standard / collection / array.nit
index 22da04e..6fe304e 100644 (file)
@@ -428,6 +428,8 @@ class ArraySet[E: Object]
 
        # Create an empty set with a given capacity.
        init with_capacity(i: Int) do _array = new Array[E].with_capacity(i)
+
+       redef fun new_set do return new ArraySet[E]
 end
 
 # Iterators on sets implemented with arrays.