member
 
 
 

Searches a list for an occurrence of an expression and returns the remainder of the list, starting with the first occurrence of the expression

(member expr lst)

Arguments

expr

The expression to be searched for.

lst

The list in which to search for expr.

Return Values

A list; otherwise nil, if there is no occurrence of expr in lst.

Examples

Command: (member 'c '(a b c d e))

(C D E)

Command: (member 'q '(a b c d e))

nil