|
From: | Michael Heerdegen |
Subject: | Re: return first element in list with certain property |
Date: | Wed, 22 Nov 2017 06:04:05 +0100 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
"James K. Lowden" <jklowden@speakeasy.net> writes: > No matter how long the list is, it traversing it twice will only take > at most twice as long. Hey, you would not say that if you had to traverse the list yourself ;-) When I optimize my own code, I always imagine I would have to perform the algorithm myself. Then you get a good feeling where it's worth to optimize and where not. Michael.
[Prev in Thread] | Current Thread | [Next in Thread] |