[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How can I step through this code?
From: |
jgart |
Subject: |
Re: How can I step through this code? |
Date: |
Mon, 10 Oct 2022 12:00:33 -0500 |
On Mon, 10 Oct 2022 18:04:57 +0200 Ludovic Courtès <ludo@gnu.org> wrote:
> What you can do though,
Thanks Ludo! Much appreciated!! I hadn't used ,optimize metacommand yet. I've
used
pk in Guile and Racket but not regularly tbh. Maybe I should start.
Ludo, how would you step through this code?
(define (list-index l k)
(let loop ((n 0)
(l l))
(and (not (null? l))
(if (eq? (car l) k)
n
(loop (+ n 1) (cdr l))))))
(list-index '(1 2 3 4 5 6 7 8 9) 2)
What is your approach with Guile?
all best,
jgart
- Re: How can I step through this code?, (continued)
- Re: How can I step through this code?, jgart, 2022/10/07
- Re: How can I step through this code?, jbranso, 2022/10/07
- Re: How can I step through this code?, jgart, 2022/10/07
- Re: How can I step through this code?, jbranso, 2022/10/08
- Re: How can I step through this code?, jgart, 2022/10/08
- Re: How can I step through this code?, jbranso, 2022/10/08
- Re: How can I step through this code?, jgart, 2022/10/09
- Re: How can I step through this code?, jbranso, 2022/10/10
- Re: How can I step through this code?, jgart, 2022/10/10
Re: How can I step through this code?, Ludovic Courtès, 2022/10/10
- Re: How can I step through this code?,
jgart <=