Sysop: | Amessyroom |
---|---|
Location: | Fayetteville, NC |
Users: | 26 |
Nodes: | 6 (1 / 5) |
Uptime: | 04:39:30 |
Calls: | 483 |
Calls today: | 1 |
Files: | 1,073 |
Messages: | 98,008 |
...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))))