| Paste number 50081: | ClusterBy |
| Pasted by: | slobodan |
| When: | 2 years, 3 months ago |
| Share: | Tweet this! | http://paste.lisp.org/+12N5 |
| Channel: | None |
| Paste contents: |
(defun cluster-by (f l)
(loop with r = (make-hash-table)
for e in l do (push e (gethash (funcall f e) r))
finally (return (loop for v being the hash-values of r collect v))))This paste has no annotations.