Do lfind/lsearch perform better than a typical looping solution that checks each item until it matches? Is there any special sauce/reason that these functions exist?
Do lfind / lsearch perform better than a typical looping solution that checks each
Share
Probably they are not more efficient that a homebrew version, maybe even a bit less since the comparison function can’t be inlined.
But this is certainly not the point with them. They complete the API of the other search functions, in particular
bsearchandtsearch.