簡單的問題,我有如何獲得所有項目從文本從有序集合
|list string|
list:= #('ab' 'efghij' 'lmnopqrst'). "Ordered collection"
list do:[:each| "string with:each" i know this is not right how do i add items ].
我試圖流過它返回我這個「有序集合('AB'efghij‘lmnopqrst’)」
我需要的是一個單一的文本具有
'abc efghij lmnopqrst '
尼斯的解釋,但使用的是[倒楣畫家算法(http://en.wikipedia.org/wiki/Schlemiel_the_Painter's_algorithm),這是非常低效的如果列表增長。而是選擇了使用#join:或#streamContents:的Norbert解決方案。 – camillobruni