Feb. 18, 2015
5:12 p.m.
I must be making some silly error here that i cannot see clearly. Why does the following leave anything in the list 'a'? Run it in a workspace. With or without the shallowCopy, i am left with a list with half of the elements in it. Always half. This version of Pharo3 (21.0) was downloaded last week. I am running on a Mac. Thanks in advance. ... Maybe I just need more coffee. -Cam | a | a := { #a. #b. #c. #d. } asOrderedCollection. a shallowCopy do: [ :item | (a includes: item) ifTrue: [ a remove: item ]]. a size