It would be nice if (for-all ..) allowed for additional,
optional list arguments.
(for-all (fn (item) ...) list1 ... listn)
It may not always be efficient to use append to
concatenate the lists since the for-all may be in
a loop itself.
It would also be nice to have a disjunction complement to
for-all called for-any
(for-any cond list1 ... listn)
(for-all cond list1 [... listn])
isn't 'for-any' what we have in 'exists' (at the moment for just one list)?
Or do you mean:
If not can you give a specific example for 'for-any'.
Lutz
Or do you mean:
Code: Select all
(or (for-all cnd list1) (for-all cnd list2) ...)
Lutz
-
- Posts: 12
- Joined: Thu May 10, 2007 9:09 pm
You're right exists does what I was asking for in for-any
I didn't see that before.
-
- Posts: 12
- Joined: Thu May 10, 2007 9:09 pm
exists is fine
my eye sight isn't the greatest any more.
I didn't see the hyperlink to exists in the manual
at the bottom of the example.
I didn't see the hyperlink to exists in the manual
at the bottom of the example.