You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
249B

  1. (module util (curry applied thunk)
  2. (import scheme)
  3. (define (curry fn a)
  4. (lambda (b)
  5. (fn a b)))
  6. (define (applied fn)
  7. (curry apply fn))
  8. (define-syntax thunk
  9. (syntax-rules ()
  10. ((_ exp ...)
  11. (lambda () exp ...)))))