(defun best (lst cmp &key (key #'identity))
(loop with rtn = (car lst)
for x in (cdr lst)
when (funcall cmp (funcall key x) (funcall key rtn))
do (setq rtn x)
finally (return rtn)))
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 403 |
Nodes: | 16 (2 / 14) |
Uptime: | 43:22:51 |
Calls: | 8,407 |
Calls today: | 2 |
Files: | 13,171 |
Messages: | 5,905,019 |