|
From: | Emanuel Berg |
Subject: | Re: return first element in list with certain property |
Date: | Mon, 20 Nov 2017 21:52:27 +0100 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) |
John Mastro wrote: > Or, if seq.el is more your style: > > (seq-find (lambda (e) (> e 1)) '(1 1 3 1 4 2)) ;=> 3 (require 'seq) (seq-find (lambda (e) (> e 1)) '(1 1 3 1 4 2)) ; 3 (require 'cl-lib) (cl-find-if (lambda (e) (> e 1)) '(1 1 3 1 4 2)) ; 3 The syntax seems pretty identical to me so perhaps you can tell me more about the seq package? I have never required `seq' before, CL tho 21 times. So I'll stick to even more CL unless you can show the court some chocking new evidence... -- underground experts united http://user.it.uu.se/~embe8573
[Prev in Thread] | Current Thread | [Next in Thread] |