max   scheme


Defined in:  https://github.com/digego/extempore/tree/v0.8.9/runtime/init.xtm

2 implementations of max: #1 /digego/extempore/tree/v0.8.9/runtime/init.xtm · #2 /lambdamusic/extempore-extensions/blob/main/init/init_lisp.xtm


Implementation

(define (max . lst)
  (foldr (lambda (a b) (if (> a b) a b)) (car lst) (cdr lst)))


Back to Index

Similar Entries