What about (find-if #'identity my-list)? That seems to work.
Anything better?
For an obfuscation contest, I think (find-if #'null my-list :key
#'not) would do well :) Otherwise, the function "some" is often
used here. I like to define "true" as an alias for the "identity"
function for such uses.
Also, loop is often useful:
(loop for x in my-list thereis x)
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (2 / 14) |
Uptime: | 51:08:59 |
Calls: | 10,397 |
Calls today: | 5 |
Files: | 14,067 |
Messages: | 6,417,338 |
Posted today: | 1 |