>>>>> On Wed, 18 Dec 2002 12:57:23 +0100, Eric GIRAUD ("Eric") writes:
Eric> i am searching a solution with lisp for the "count ok" problem
I have no idea what the "count ok" problem is, but perhaps if you post
a description of the problem and your attempt in Lisp so far, someone
might help you.
"Christopher C. Stacy" <······@dtpq.com> wrote in message
··················@dtpq.com...
> >>>>> On Wed, 18 Dec 2002 12:57:23 +0100, Eric GIRAUD ("Eric") writes:
> Eric> i am searching a solution with lisp for the "count ok" problem
>
> I have no idea what the "count ok" problem is, but perhaps if you post
> a description of the problem and your attempt in Lisp so far, someone
> might help you.
>
CL-USER 7 >
(defun count-ok (&rest args)
(let ((result (apply #'count args)))
(values result (unless (zerop result) "ok"))))
COUNT-OK
CL-USER 8 > (count-ok 'foo '(foo fie fum foo bar))
2
"ok"
CL-USER 9 > (count-ok 'ouch '(foo fie fum foo bar))
0
NIL
--
Coby Beck
(remove #\Space "coby 101 @ bigpond . com")
ps sorry Eric, just havin' some fun! ;)