Word frequency: Difference between revisions

Line 216:
(equal x #\-))) s))
 
(defun pair (words &aux (hash (make-hash-table)) accac)
(dolist (word words) (incf (gethash word hash 0)))
(maphash #'(lambda (e n) (push `(,e . ,n) accac)) hash) accac)
</lang>
 
Anonymous user