[ prog / sol / mona ]

prog


Post macros.

22 2020-06-04 21:33 *

>>20
Is there any reason for multi to be a macro? Currently it is the same as

(define (multi f . args)
  (for-each f args))

If you wrapped it in extra parentheses, it would be just for-each. For example:

(for-each
 (lambda (a b) (display (+ a b)) (newline))
 '(1 2 3) '(4 5 6))

Unless I am missing something.

23 2020-06-04 21:43

>>22
christ, no you're not missing anything, I knew it didn't need to be a macro, and it seemed a little fishy, but for some reason I completely missed that it was just ‘for-each’, fail.

40


VIP:

do not edit these