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 13:40:49 -0800 Message-ID: References: <8660a60zjn.fsf@zoho.com> <86k1ylzxn8.fsf@zoho.com> <87ine4vjqw.fsf@web.de> <86efosy7dt.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 1511214114 29076 195.159.176.226 (20 Nov 2017 21:41:54 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 20 Nov 2017 21:41:54 +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 22:41:50 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 1eGtp5-0007Aq-JJ for geh-help-gnu-emacs@m.gmane.org; Mon, 20 Nov 2017 22:41:47 +0100 Original-Received: from localhost ([::1]:59895 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eGtpD-0001av-0w for geh-help-gnu-emacs@m.gmane.org; Mon, 20 Nov 2017 16:41:55 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36870) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eGtoa-0001Yp-VY for help-gnu-emacs@gnu.org; Mon, 20 Nov 2017 16:41:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eGtoV-0000cE-Of for help-gnu-emacs@gnu.org; Mon, 20 Nov 2017 16:41:12 -0500 Original-Received: from mail-qt0-x231.google.com ([2607:f8b0:400d:c0d::231]:45667) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eGtoV-0000bW-KU for help-gnu-emacs@gnu.org; Mon, 20 Nov 2017 16:41:11 -0500 Original-Received: by mail-qt0-x231.google.com with SMTP id r37so8566694qtj.12 for ; Mon, 20 Nov 2017 13:41:11 -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=LB7CEbBgLPzyygbqEUleBLWn/cq5oCa8HgCdZzAShH0=; b=a3wX8Q5ygGlbpJWdzPiYaPTlRr+WiusDjolpPIdrQTN7QceqYOI7mjKNFC5SR7MUrU eRh/zT+E6ub3z3RCNeH1Au0u6tq5vQPpLxfjq+G5eK3HA6RopVsZZ7l7p61FgDfwMcyt 4Fq66/JRdbGMkctCxyFulJ4/csJFx/RVqSdxGgBQYI2PXI3VCqbRwHtCpHOM52RyYkai +nXDyQLP+mSbdZI1HWOQNowV9mF2LAAR8CWFF5vAhXlLBoDkfkLJw/54P9prN9y10VJr JeyoB+S70x3vuXm3kWCJddy/DetaCJKwr0OZ8GIVqEDk97AQlc59OfNqneUrOfG1vnT8 +nxg== 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=LB7CEbBgLPzyygbqEUleBLWn/cq5oCa8HgCdZzAShH0=; b=uhtXxnbigv0YpYk8XPgjyfdq5zi/8EGYz8xFVRWTdUamezyD90686EFTMZZsi57RiE d/VzKOd0aOxu1Nflan8XqarKS6E3Z0TLKqXQMfaAhXOCsB7ziJSKHzxq/5Bz56Xy+c9t WTUtqz7HOxnlpAmpaVd9ObvZmBxHrTzfdljIHkFs/2OU0eI2XdoeWu8pFRTmboy/KxRM obVDDt0lpTuuP2lrxyM205kmnC85idwiGWm1sjbraSI5iYNtqU6jfSxmlhCB3yYIeCOT Wj4B06OvyRH/vjg2YeuTj8+PtHhn8vLf88WLgt9RiK9C/aUgiP4agkt7T/RljehdXctZ Wtfg== X-Gm-Message-State: AJaThX7pMXKG4vOeMxrm/+2riF4jiqEW4JgZF7abK7HxfS5NxGLCzYnz 4mR6PGOMA+yqCORSJ8IFLVsFeyaZVOqA9xlmoz2HwFy3 X-Google-Smtp-Source: AGs4zMYtN9xTIBzyGNzhz1Q//ibzXecIgpU9vRk8rb8T2ppxhqv3snyqYHYGmZlKA5tKznX+OruASNXslqvXeb+mhsY= X-Received: by 10.200.2.150 with SMTP id p22mr24421190qtg.328.1511214070594; Mon, 20 Nov 2017 13:41:10 -0800 (PST) Original-Received: by 10.200.15.80 with HTTP; Mon, 20 Nov 2017 13:40:49 -0800 (PST) In-Reply-To: <86efosy7dt.fsf@zoho.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c0d::231 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:115014 Archived-At: Emanuel Berg wrote: > Michael Heerdegen wrote: > >> And if you want to be cool: >> >> (seq-find (apply-partially #'< 1) '(1 1 3 1 4 >> 2)) ==> 3 > > "And" if you want to be cool? I agree > `apply-partially' is cooler but why is > `seq-find' better than `cl-find-if'? > > Actually no one said it was better. The only > thing said was that it was my style. Eheh. I didn't say anything about your style. I pointed out that "if seq.el is more your style" (in other words, "if you prefer seq.el"), seq-find also works for this. John