--- Begin Message ---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
--- End Message ---
[Pharo-users] i feel dumb / Pharo3 > OrderedCollection >> do:
Cameron Sanders via Pharo-users Wed, 18 Feb 2015 09:14:10 -0800
- [Pharo-users] i feel dumb / Pharo3 > Or... Cameron Sanders via Pharo-users
- Re: [Pharo-users] i feel dumb / Pharo... Marcus Denker
- Re: [Pharo-users] i feel dumb / P... S Krish
- Re: [Pharo-users] i feel dumb... Marcus Denker
- Re: [Pharo-users] i feel ... Clément Bera
- Re: [Pharo-users] i ... Mariano Martinez Peck
- Re: [Pharo-users... Sven Van Caekenberghe
- Re: [Pharo-users... Marcus Denker
- Re: [Pharo-u... Stephan Eggermont