Welcome to the CHICKEN Scheme pasting service

naive added by andyjpb on Tue Mar 5 20:40:59 2013

(lambda (thingy lst)
(let loop ((lst lst)
           (max 0)
           (idx 0)
           (max-idx #f))
  (if (pair? lst)
    (if (> (car lst) max)
        (loop (cdr lst) (car lst) (add1 idx) idx)
        (loop (cdr lst) max       (add1 idx) max-idx)
    max-idx)))

Your annotation:

Enter a new annotation:

Your nick:
The title of your paste:
Your paste (mandatory) :
Which module provides `process-wait'?
Visually impaired? Let me spell it for you (wav file) download WAV