From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Philipp Stephani Newsgroups: gmane.emacs.help Subject: Re: return first element in list with certain property Date: Sun, 19 Nov 2017 21:37:56 +0000 Message-ID: References: <8660a60zjn.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 1511127526 1779 195.159.176.226 (19 Nov 2017 21:38:46 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 19 Nov 2017 21:38:46 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Nov 19 22:38:39 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 1eGXIP-0007zW-Rh for geh-help-gnu-emacs@m.gmane.org; Sun, 19 Nov 2017 22:38:34 +0100 Original-Received: from localhost ([::1]:54461 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eGXIV-0004Ee-8Z for geh-help-gnu-emacs@m.gmane.org; Sun, 19 Nov 2017 16:38:39 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54450) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eGXI1-0004EU-5S for help-gnu-emacs@gnu.org; Sun, 19 Nov 2017 16:38:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eGXI0-0002xI-9Z for help-gnu-emacs@gnu.org; Sun, 19 Nov 2017 16:38:09 -0500 Original-Received: from mail-qk0-x22c.google.com ([2607:f8b0:400d:c09::22c]:36388) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eGXI0-0002wH-4v for help-gnu-emacs@gnu.org; Sun, 19 Nov 2017 16:38:08 -0500 Original-Received: by mail-qk0-x22c.google.com with SMTP id o6so5326636qkh.3 for ; Sun, 19 Nov 2017 13:38:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=N4eSSuw5ws4lyTe6XMTzfjPueaCrAjpzOjWNyVdaDY8=; b=CvMV97QJxP2YxlnJxDdrMpdAesPR4O88OoKbPXN6RXYztVtu2yx7Wz2+c1daADbGEA mQTIWN8Nbc2n8Y/+MlKoFmveR1E5iRsyHDBKcpGT+urYEt/Q0wlMHzdDCQXbM+Nt6CnO o4CSjcqacblTEsuUQ/0vti6j+zD9GwKiCKy7BrwS97DHZR8IaOt3SAQ2Drubx7U5kI5+ F+wkVg2CLclhsTgBb7ryo6mLzPeaiLwne6y0vsH8eaEZLuAVgi1UlB3NTW2RYS+NuT/0 ajNv5aY69MJMyQ7r2gEgCxsU0m42buafGYAswD0S58YQeCQo1yyKlzUSxeQT3Qo1EBDg r13w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=N4eSSuw5ws4lyTe6XMTzfjPueaCrAjpzOjWNyVdaDY8=; b=gCO+BG5Rbtk64ap+3dJuUjROCPx66TdpEYRa+CFIrbfVGBKaCrGdpBGHNkDBb4JeeR TPaEqu7T9V679yHJg9S8mERn4vbQoaseCGbp1Kbd2ag7bpkrPXmHtdXc8SRnETqqt6dv INaz9HepJKhTIaJQhP0bPPH/ypZQUP83hm69tvg5dRxu/GYN9bya8m0sTbO0crXZHUrZ 6R3Ely979ndfnpJxh6YtVCZfe/i7Ozyd4Jy5yyxZqPaekAb8/1Y6DXIlAE8A3Co+CLKQ Cz0AXV7IzoikSlCrGzbySSnHpsmKjJ9eLMh3BTXDOq1VGgLr/PG5Do72OHZb9xwTaP+K 9GRQ== X-Gm-Message-State: AJaThX5o5YQpSuVcPcxiLWqWI9IxuSdg4wMGhFbdZWOlsaDHaEYQdGK0 l0ObwnN7Jr36t/LwQe3c1jfCNHKeay+XNzDxICgP9A== X-Google-Smtp-Source: AGs4zMY0koQT5kJ3tFgHHjx2r+ITMppa0tOUk1ArHUH4mX5faCdOoFzG8IzAUXtr1AP5CT9lSArhsWJNhvPQrMwBnro= X-Received: by 10.55.33.167 with SMTP id f39mr16750683qki.143.1511127487123; Sun, 19 Nov 2017 13:38:07 -0800 (PST) In-Reply-To: <8660a60zjn.fsf@zoho.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c09::22c X-Content-Filtered-By: Mailman/MimeDel 2.1.21 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:114988 Archived-At: Emanuel Berg schrieb am So., 19. Nov. 2017 um 21:44 Uhr: > What is considered the right way to return the > first element in list that has > a certain property? > > The best way I've found so far is `cl-some' and > then `and'. While I don't consider the > "`and' hack" to be detrimental in any way I was > curious if there was a complete > "hack free" way... > cl-find-if