• Nikodemus Siivola's avatar
    tweak EXTREMUM · 0c39310e
    Nikodemus Siivola authored
     Return NIL if the sequence is empty, instead of the NO-EXTREMUM nonsense.
    
     It was bad design, because it's not an error someone higher up the stack can
     sensibly handle, and handling it locally is too verbose and slow.
    
        (or (extremum ...) (error ...))
    
     expresses the common case succintly, and fits the pattern of existing
     sequence functions.
    
     If it is deemed necessary, we can also add &KEY DEFAULT, but that seems
     overkill and has little precedent in sequence functions.
    0c39310e
Name
Last commit
Last update
doc Loading commit data...
.boring Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
LICENCE Loading commit data...
README Loading commit data...
alexandria-tests.asd Loading commit data...
alexandria.asd Loading commit data...
arrays.lisp Loading commit data...
binding.lisp Loading commit data...
conditions.lisp Loading commit data...
control-flow.lisp Loading commit data...
definitions.lisp Loading commit data...
features.lisp Loading commit data...
functions.lisp Loading commit data...
hash-tables.lisp Loading commit data...
io.lisp Loading commit data...
lists.lisp Loading commit data...
macros.lisp Loading commit data...
numbers.lisp Loading commit data...
package.lisp Loading commit data...
sequences.lisp Loading commit data...
strings.lisp Loading commit data...
symbols.lisp Loading commit data...
tests.lisp Loading commit data...
types.lisp Loading commit data...