find, find_equal
find, find_equal — search a list using the eq and
equal functions.
find (s_exp, list)
find_equal (s_exp, list)
s_expAny Gamma or Lisp expression.
listA list to be searched.
The tail of the list starting at the matching
element. If no match is found, nil.
The find function searches the
list comparing each element to the
s_exp with the function eq.
The find_equal function uses equal
instead of eq for the comparison.
Gamma>find(#a,#list(d,x,c,a,f,t,l,j));(a f t l j)Gamma>find("hi", #list("Bob","says", "hi"));nilGamma>find_equal("hi",#list("Bob","says","hi"));("hi")Gamma>