That is strange. In VW it works. I did not look at the Pharo
implementation, though so I do not know what is different.
On 30 Mar 2009, at 18:03, Simon Denier wrote:
I ran into the following problem (related to
FamixModelExtractionTest even if it's more general)
(#((1) (3) () ()) flatCollect: [ :each ])
#(1 3 nil nil)
when one expects #(1 3)
flatCollect: is defined in Colllection, I dont want to override it
| stream |
self isEmpty ifTrue: [ ^ self copy ].
stream := (self species new: self size) nsWriteStream.
self do: [ :each | stream nextPutAll: (aBlock value: each) ].
^ stream contents
Can someone find an elegant solution which would "shrink" the
resulting array to its non-nil content?
Moose-dev mailing list
"Every successful trip needs a suitable vehicle."