On 04/29/2014 06:41 PM, tim Rowledge wrote:
On 29-04-2014, at 9:30 AM, Göran Krampe goran@krampe.se wrote:
...now... where do we stuff in #neglect:? :)
Clearly, aCollection neglect: [:item| item size > myFoo] would return a WeakArray of elements matching the block criterion; then when nobody is paying much attention they can be garbage collected.
I like it. Personally was thinking that neglect could work similar to reject but instead return a wrapper using the first collection as a "backend". So it uses the same collection but "neglects" those elements not matching :)
Dynamically add some nasty Trait?
regards, Göran