A new version of Collections was added to project The Inbox: http://source.squeak.org/inbox/Collections-ct.828.mcz
==================== Summary ====================
Name: Collections-ct.828 Author: ct Time: 1 June 2019, 11:44:28.179879 am UUID: 6aa0cef4-9502-0e4d-8d58-5552f7e07379 Ancestors: Collections-cmm.826
Move #join and #joinSeparatedBy: from SequenceableCollection to Collection
=============== Diff against Collections-cmm.826 ===============
Item was added: + ----- Method: Collection>>join (in category 'converting') ----- + join + "Example: #(H e l l o W o r l d) join = 'HelloWorld'. " + + ^ self joinSeparatedBy: ''!
Item was added: + ----- Method: Collection>>joinSeparatedBy: (in category 'converting') ----- + joinSeparatedBy: aSeparator + "Returns a string, which is a concatenation of each element's string representation separated by another string." + + ^ String streamContents: [:stream | + self + do: [:ea | stream nextPutAll: ea asString] + separatedBy: [stream nextPutAll: aSeparator asString]]!
Item was removed: - ----- Method: SequenceableCollection>>join (in category 'converting') ----- - join - "Example: #(H e l l o W o r l d) join = 'HelloWorld'. " - - ^ self joinSeparatedBy: ''!
Item was removed: - ----- Method: SequenceableCollection>>joinSeparatedBy: (in category 'converting') ----- - joinSeparatedBy: aSeparator - "Returns a string, which is a concatenation of each element's string representation separated by another string." - - ^ String streamContents: [:stream | - self - do: [:ea | stream nextPutAll: ea asString] - separatedBy: [stream nextPutAll: aSeparator asString]]!
squeak-dev@lists.squeakfoundation.org