Arc Forumnew | comments | leaders | submitlogin
Pedantic note on recstring
1 point by fallintothis 5633 days ago | 3 comments
I've never seen anyone bring this up before, but it's distracting me at the moment (while I browse through arc.arc instead of sleeping):

   (def recstring (test s (o start 0))
     (let n (len s)
       ((afn (i)
          (and (< i (len s))           ;shouldn't (len s) be n?
               (or (test i)
                   (self (+ i 1)))))
        start)))


1 point by shader 5633 days ago | link

Seeing as s has not changed, and n is already defined as (len s), I would have to agree with you.

-----

1 point by pg 5632 days ago | link

Oops, yes, will fix.

-----

1 point by pg 5632 days ago | link

This is fixed in the latest arc3.tar.

-----