Next: , Previous: SequenceableCollection-comparing, Up: SequenceableCollection


1.147.4 SequenceableCollection: concatenating

join: sepCollection
Answer a new collection like my first element, with all the elements (in order) of all my elements (which should be collections) separated by sepCollection.

I use my first element instead of myself as a prototype because my elements are more likely to share the desired properties than I am, such as in:

#('hello,' 'world') join: ' ' => 'hello, world'


with: aSequenceableCollection
Return an Array with the same size as the receiver and aSequenceableCollection, each element of which is a 2-element Arrays including one element from the receiver and one from aSequenceableCollection.


with: seqColl1 with: seqColl2
Return an Array with the same size as the receiver and the arguments, each element of which is a 3-element Arrays including one element from the receiver and one from each argument.


with: seqColl1 with: seqColl2 with: seqColl3
Return an Array with the same size as the receiver and the arguments, each element of which is a 4-element Arrays including one element from the receiver and one from each argument.