Collection.st
changeset 14996 d0c96a4314bd
parent 14991 92336b82bdb1
child 15030 2f43f5ad8505
child 18043 03660093fe98
--- a/Collection.st	Fri Mar 29 00:13:28 2013 +0100
+++ b/Collection.st	Fri Mar 29 00:14:55 2013 +0100
@@ -1547,6 +1547,36 @@
     ^ self asIntegerArray:LongIntegerArray
 !
 
+asNewArray
+    "return a new Array with the receiver collections elements"
+
+    ^ self asArray
+!
+
+asNewDictionary
+    "return a new Dictionary with the receiver collections elements"
+
+    ^ self asDictionary
+!
+
+asNewIdentitySet
+    "return a new IdentitySet with the receiver collections elements"
+
+    ^ self asIdentitySet
+!
+
+asNewOrderedCollection
+    "return a new OrderedCollection with the receiver collections elements"
+
+    ^ self asOrderedCollection
+!
+
+asNewSet
+    "return a new Set with the receiver collections elements"
+
+    ^ self asSet
+!
+
 asOrderedCollection
     "return a new OrderedCollection with the receiver collections elements"
 
@@ -4668,11 +4698,11 @@
 !Collection class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libbasic/Collection.st,v 1.296 2013-03-28 15:55:44 stefan Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic/Collection.st,v 1.297 2013-03-28 23:14:55 stefan Exp $'
 !
 
 version_CVS
-    ^ '$Header: /cvs/stx/stx/libbasic/Collection.st,v 1.296 2013-03-28 15:55:44 stefan Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic/Collection.st,v 1.297 2013-03-28 23:14:55 stefan Exp $'
 ! !