guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Q on tail-call


From: Matt Wette
Subject: Q on tail-call
Date: Sun, 15 Feb 2015 07:07:14 -0800

Is the following (incomplete) construct tail recursive?   The name-call is 
wrapped inside a "trivial" closure.

 (let ITER ((res '()) (st 1) (nd 1))
        (cond
         ((string-contains str "," st) => (lambda (pos) (ITER res st pos)))))

I tried to use "(compile 'above :from 'scheme :to 'xlil)" (and others), but the 
code was not readable for me.

Matt




reply via email to

[Prev in Thread] Current Thread [Next in Thread]