• NicolasPetton's avatar
    Add seq-find · 8aa03864
    NicolasPetton authored
    This function is similar to `seq-some' but returns the found element.
    In the cases where nil can be the found element, a sentinel optional
    argument can be provided to avoid ambiguities.
    
    * lisp/emacs-lisp/seq.el (seq-find): New function.
    * test/automated/seq-tests.el (test-seq-find): Add tests for `seq-find'.
    * doc/lispref/sequences.texi (Sequence Functions): Add documentation for
    seq-find.
    8aa03864
seq-tests.el 12.1 KB