Skip to content

Commit

Permalink
minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
lmj committed Nov 6, 2014
1 parent db47f06 commit 0388f1e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
9 changes: 2 additions & 7 deletions bench/bench.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,9 @@
:for pos :on list :by (partial-apply 'nthcdr n)
:collect (subseq pos 0 n)))

(defun identity-args (&rest args)
args)

(defun zip (&rest args)
(apply #'mapcar 'identity-args args))

(defun riffle (groups deck)
(apply #'zip (groups-of (/ (length deck) groups) deck)))
(apply #'mapcar #'list
(groups-of (/ (length deck) groups) deck)))

;;;; wall time

Expand Down
2 changes: 1 addition & 1 deletion src/cognate/util.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
(in-package #:lparallel.cognate)

(defun zip/vector (seqs)
(apply #'map 'vector (lambda (&rest args) args) seqs))
(apply #'map 'vector #'list seqs))

(defun find-min-length (seqs)
(reduce #'min seqs :key #'length))
Expand Down

0 comments on commit 0388f1e

Please sign in to comment.