MAP-COMBINATIONS and MAP-DERANGEMENTS both return the original sequence. This changes MAP-PERMUTATIONS to match their behavior.
MAP-PERMUTATIONS previously returned one of: the original sequence, NIL, or the result of calling the function, depending on which code path happened to be taken.
Patch attached.
alexandria-devel@common-lisp.net