S
Suresh Jeevanandam
Guest
From cdsdoc:
The memq Function
The memq function is the same as the member function except that it uses
the eq function for finding the element. Because the eq function is more
efficient than the equal function, use memq whenever possible based on
the nature of the data. For example, if the list to search contains only
symbols, then using the memq function is more efficient than using the
member function.
But it does not suggest when using memq instead of member would fail.
Can somebody give an example where using memq would give false results.
--
Suresh
The memq Function
The memq function is the same as the member function except that it uses
the eq function for finding the element. Because the eq function is more
efficient than the equal function, use memq whenever possible based on
the nature of the data. For example, if the list to search contains only
symbols, then using the memq function is more efficient than using the
member function.
But it does not suggest when using memq instead of member would fail.
Can somebody give an example where using memq would give false results.
--
Suresh