|
From: | Michael Heerdegen |
Subject: | Re: return first element in list with certain property |
Date: | Mon, 20 Nov 2017 20:21:43 +0100 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
John Mastro <john.b.mastro@gmail.com> writes: > >> 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 And if you want to be cool: (seq-find (apply-partially #'< 1) '(1 1 3 1 4 2)) ==> 3 Michael.
[Prev in Thread] | Current Thread | [Next in Thread] |