Sysop: | Amessyroom |
---|---|
Location: | Fayetteville, NC |
Users: | 28 |
Nodes: | 6 (0 / 6) |
Uptime: | 43:34:44 |
Calls: | 422 |
Calls today: | 1 |
Files: | 1,024 |
Messages: | 90,183 |
...Well if you alway use these two functions together, it would be more
efficient to generate both the results at once:
...The case could be made either way for this one, though, and certainly
it would be better in terms of efficiency; thanks again for the suggestion.
(defun split-on-corpus (atoms preprocessed-corpus)
(loop :for atom :in atoms
:if (gethash atom preprocessed-corpus)
:collect atom :into present
:else :collect atom :into absent
:finally (return (list present absent))))