-- "A. Pagaltzis" <[EMAIL PROTECTED]>

* Steven Lembark <[EMAIL PROTECTED]> [2002-11-20 12:47]:
	map
	{
		$sum < $cut ?

			( ($sum += $sln + length) < $cut ? $_ : $end )
			:
			()
	}
Wasted work. Two comparisons per element and you don't bail
once you've filled your available space.
Two comparisons on a short list, at which point the remainder
of them are a simple comparison to get a () out, which ends
up as a null operation. And they are separate.





--
Steven Lembark                               2930 W. Palmer
Workhorse Computing                       Chicago, IL 60647
                                           +1 800 762 1582

Reply via email to