![]() | ![]() | ![]() | memq | ![]() |
| item list
| [Function] |
Purpose
Search for item in list using eq
as the
comparison function.
Package :gbbopen-tools
Module :gbbopen-tools
Arguments and values
item | An object | |
list | A proper list | |
tail | A proper list |
Returns
The tail of list beginning with item if
item is present; nil
otherwise.
Description
Memq is a convenient shorthand for:
(member item (the list list) :test #'eq)
See also
counted-delete
assq
delq
delq-one
Examples
> (memq 'b '(a b c b)) (b c b) > (memq 'x '(a b c b)) nil >
The GBBopen Project
![]() | ![]() | ![]() | memq | ![]() |