--- a/Collection.st Tue Feb 18 03:47:42 2014 +0100
+++ b/Collection.st Tue Feb 18 12:12:11 2014 +0100
@@ -1649,6 +1649,17 @@
^ anIntegerArray
!
+asKeysAndValues
+ "return a Dictionary with the receiver's associations as key->value pairs
+ using each element's key as dictionary key and value as dictionary value."
+
+ ^ Dictionary withAssociations:self
+
+ "
+ { 10->'ten' . 20->'twenty' . 30->'thirty'} asKeysAndValues
+ "
+!
+
asList
"return a new List with the receiver collection's elements"
@@ -5397,11 +5408,11 @@
!Collection class methodsFor:'documentation'!
version
- ^ '$Header: /cvs/stx/stx/libbasic/Collection.st,v 1.327 2014-02-13 21:02:35 cg Exp $'
+ ^ '$Header: /cvs/stx/stx/libbasic/Collection.st,v 1.328 2014-02-18 11:12:11 cg Exp $'
!
version_CVS
- ^ '$Header: /cvs/stx/stx/libbasic/Collection.st,v 1.327 2014-02-13 21:02:35 cg Exp $'
+ ^ '$Header: /cvs/stx/stx/libbasic/Collection.st,v 1.328 2014-02-18 11:12:11 cg Exp $'
! !