[Pharo-project] Symbol>>cull:

Nicolas Cellier nicolas.cellier.aka.nice at gmail.com
Sun Oct 10 09:10:44 EDT 2010


We recently added #value: to Symbol to be able to use it in place of a
one arg block.

(1 to: 10) select: #even.

It would be logical to add #cull: too, xtreams tests use this for example:
	output write: #[ 1 2 3 4 5 6 7 8 9 ].
	self assert: ((input rejecting: #even) read: 5) = #[ 1 3 5 7 9 ]

Any objection to add it in core ?
(otherwise i will add it to Xtreams-VWCompatible)

Nicolas




More information about the Pharo-dev mailing list