[ prog / sol / mona ]

prog


Lisp beginner thread

46 2020-05-30 16:07

>>44
Note that `def-memo' can be made more general (to support memoizing processes which can return false) using continuations, especially with the provided `try' macro.

(define-syntax try
  (syntax-rules ()
    ((_ x a b)
     (call/cc (lambda (succ)
       (call/cc (lambda (x)
         (succ a)))
       b)))))
132


VIP:

do not edit these