From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: John Mastro Newsgroups: gmane.emacs.help Subject: Re: return first element in list with certain property Date: Mon, 20 Nov 2017 10:51:27 -0800 Message-ID: References: <8660a60zjn.fsf@zoho.com> <86k1ylzxn8.fsf@zoho.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1511203960 10255 195.159.176.226 (20 Nov 2017 18:52:40 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 20 Nov 2017 18:52:40 +0000 (UTC) To: "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Nov 20 19:52:33 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eGrBH-00025m-3p for geh-help-gnu-emacs@m.gmane.org; Mon, 20 Nov 2017 19:52:31 +0100 Original-Received: from localhost ([::1]:59243 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eGrBO-0003YN-Ba for geh-help-gnu-emacs@m.gmane.org; Mon, 20 Nov 2017 13:52:38 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41121) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eGrAc-0003X3-I2 for help-gnu-emacs@gnu.org; Mon, 20 Nov 2017 13:51:52 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eGrAb-0008Pe-LA for help-gnu-emacs@gnu.org; Mon, 20 Nov 2017 13:51:50 -0500 Original-Received: from mail-qt0-x232.google.com ([2607:f8b0:400d:c0d::232]:43556) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eGrAb-0008PM-Gy for help-gnu-emacs@gnu.org; Mon, 20 Nov 2017 13:51:49 -0500 Original-Received: by mail-qt0-x232.google.com with SMTP id w10so4044307qtb.10 for ; Mon, 20 Nov 2017 10:51:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=NuPO6FLzQAkxfhGf5KNwSSYCMQcu4vOLQYkQJ2+qJFo=; b=m/hy2lkiLJmP399QMiSaaWm2QM5VOXUbmfkVv+peQMehBjxDcxYdoXEiIyURx5zJol MfVZcIZnF+qggmlke+t352BmlPfpwnRvznKcECfdBiPkVuWa4CWSPsocbzWgof0jIp3t uN11DQk1NDjDQ/4ldjzcTwuFPlog9fnE0MD3M49UGJ/Qhq24izLFDf9iG60961WPhist K72wQu9I/x0gLblTnO4dZZLGr5mTj2vtAbHMN0KENRhoMPZiVagvHI8vQ35YX9M1lGxG Snhbuqb4yqso+L0Egi2Tjdb4ZOU8yUWmLMFU7hPmp85QtCuzRa48dU0e9xg+cucBBPOF dkSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=NuPO6FLzQAkxfhGf5KNwSSYCMQcu4vOLQYkQJ2+qJFo=; b=JRNL+RMlFzn2eWAVe3hrV9RRSW0FWg/ZsP1yiqjmbCtTXFb+CdyVxxRfMbv2j086Sh Dm2pkAQSrpdHzvoW5VsvPbtTvk8pCrGGeuM+vZ+YsqCz7DcaHIu6Jr3L9HVBeprx3pEt TuNifWktY0QLN4idJeub0gbE+ytMvaUOhfoqRBhCtmBumviGpDeYALzOOvPnrgyt9hqQ XvZoS+XJTyg25jYYUg+YPVW8da0NCSLrk6ufbyTVwPErzqaMrJg9UE6vJnObt6mIzabg /Bu2JhwFgeWOTYBCqfgje2u2BbD7dajC44WkMyk8x2j/dmKbD+Cw59zAuswgStUrKEMt Crfw== X-Gm-Message-State: AJaThX6xE+YzxagdkjC4MMhmvK/+7jomPDmHGkYE2YE9RZaPR+iPgdNB Q6MFUwIwMsNeQnZBZikmLC5SRje05INGmyode4QG8EcL X-Google-Smtp-Source: AGs4zMadglJuSlM0YRoiMdCJpjmIAHePS3iafASXmG88TIBwev78AohWpKRlUBKxg06BzZdNS9mkk0ujoidZslkYVJk= X-Received: by 10.200.53.238 with SMTP id l43mr22742879qtb.269.1511203908349; Mon, 20 Nov 2017 10:51:48 -0800 (PST) Original-Received: by 10.200.15.80 with HTTP; Mon, 20 Nov 2017 10:51:27 -0800 (PST) In-Reply-To: <86k1ylzxn8.fsf@zoho.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c0d::232 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:115006 Archived-At: Emanuel Berg wrote: > Philipp Stephani wrote: >> cl-find-if > > That's it 100% Or, if seq.el is more your style: (seq-find (lambda (e) (> e 1)) '(1 1 3 1 4 2)) ;=> 3 John