Subject: Re: Help:  I can't find a simple CL function/idiom
From: Erik Naggum <>
Date: Mon, 08 Apr 2002 23:59:48 GMT
Newsgroups: comp.lang.lisp
Message-ID: <>

* Michael Naunton
| I wound up writing
| (some (lambda (e) e) alist)
| but that seems a bit strained.

  The function identity is predefined.

| I've played "guess the word" in the HyperSpec, but can't find the idiom I
| want.

  For a single list of arguments, some may or may not be misleading.

(find-if #'identity list)
(find-if-not #'null list)

  Note that the name "alist" connotes association lists, for which this
  operation makes little sense.

  In a fight against something, the fight has value, victory has none.
  In a fight for something, the fight is a loss, victory merely relief.

  Post with compassion: