all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / 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

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.