equal
deleted
inserted
replaced
1584 |
1584 |
1585 asDictionary |
1585 asDictionary |
1586 "return a Dictionary with the receiver collection's elements, |
1586 "return a Dictionary with the receiver collection's elements, |
1587 using the original keys of the receiver as dictionary key. |
1587 using the original keys of the receiver as dictionary key. |
1588 Notice: this is redefined in Dictionary, where it returns the receiver. |
1588 Notice: this is redefined in Dictionary, where it returns the receiver. |
1589 Use asNewDictionary, if you intent to modify the returned collection." |
1589 Use asNewDictionary, if you intent to modify the returned collection. |
|
1590 See associationsAsDictionary if you already have a collection of associations" |
1590 |
1591 |
1591 |d| |
1592 |d| |
1592 |
1593 |
1593 d := Dictionary new. |
1594 d := Dictionary new. |
1594 self keysAndValuesDo:[:k :v | d at:k put:v]. |
1595 self keysAndValuesDo:[:k :v | d at:k put:v]. |
5609 ! ! |
5610 ! ! |
5610 |
5611 |
5611 !Collection class methodsFor:'documentation'! |
5612 !Collection class methodsFor:'documentation'! |
5612 |
5613 |
5613 version |
5614 version |
5614 ^ '$Header: /cvs/stx/stx/libbasic/Collection.st,v 1.346 2014-07-16 13:08:37 cg Exp $' |
5615 ^ '$Header: /cvs/stx/stx/libbasic/Collection.st,v 1.347 2014-07-23 12:29:06 cg Exp $' |
5615 ! |
5616 ! |
5616 |
5617 |
5617 version_CVS |
5618 version_CVS |
5618 ^ '$Header: /cvs/stx/stx/libbasic/Collection.st,v 1.346 2014-07-16 13:08:37 cg Exp $' |
5619 ^ '$Header: /cvs/stx/stx/libbasic/Collection.st,v 1.347 2014-07-23 12:29:06 cg Exp $' |
5619 ! ! |
5620 ! ! |
5620 |
5621 |
5621 |
5622 |
5622 Collection initialize! |
5623 Collection initialize! |