Skip to content

Commit

Permalink
Another bugfix to UNZIP-ALIST
Browse files Browse the repository at this point in the history
Looks like this is the behavior expected by PCALL...
Who am I to argue with that?
  • Loading branch information
adlai committed Jun 17, 2012
1 parent f577a1c commit 1bcac34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils.lisp
Expand Up @@ -15,8 +15,8 @@
(defun unzip-alist (alist)
"Returns two fresh lists containing the keys and values of ALIST"
(loop for pair in alist
collect (car pair) into keys
collect (cdr pair) into vals
collect (first pair) into keys
collect (second pair) into vals
finally (return (values keys vals))))

(defun nunzip-alist (alist &aux (keys alist) (vals (car alist)))
Expand Down

0 comments on commit 1bcac34

Please sign in to comment.