unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* How can I step through this code?
@ 2022-10-06  3:05 jgart
  2022-10-07 18:45 ` jbranso
  2022-10-10 16:04 ` Ludovic Courtès
  0 siblings, 2 replies; 13+ messages in thread
From: jgart @ 2022-10-06  3:05 UTC (permalink / raw)
  To: Guix Help

Hi

How can I step through this code?

(define-syntax do
  (syntax-rules ()
    ((do ((var init step ...) ...)
         (test expr ...)
         command ...)
     (letrec
       ((loop
         (lambda (var ...)
           (if test
               (begin
                 (if #f #f)
                 expr ...)
               (begin
                 command
                 ...
                 (loop (do "step" var step ...)
                       ...))))))
       (loop init ...)))
    ((do "step" x)
     x)
    ((do "step" x y)
     y)))



^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2022-10-10 22:41 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-06  3:05 How can I step through this code? jgart
2022-10-07 18:45 ` jbranso
2022-10-07 19:22   ` jgart
2022-10-07 21:52   ` jbranso
2022-10-08  1:25     ` jgart
2022-10-08 15:03     ` jbranso
2022-10-08 17:23       ` jgart
2022-10-09  0:14       ` jbranso
2022-10-09 16:30         ` jgart
2022-10-10 19:49         ` jbranso
2022-10-10 22:40           ` jgart
2022-10-10 16:04 ` Ludovic Courtès
2022-10-10 17:00   ` jgart

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).