On 17.08.2011 22:17, Stéphane Ducasse wrote: > I wrote > > > cull: anArg > "Execute the receiver with one or zero argument. > > [ 1 + 2 ] cull: 5 > returns 3 > [ :x | 1+ 2 + x] cull: 5 > returns 8 > " > ^numArgs = 0 > ifTrue: [self value] > ifFalse: [self value: anArg] >
So it's like #valueWithPossibleArgument:? Why do we need two methods that do the same thing? Cheers Philippe
