range-limit   scheme


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

Implementation

(define range-limit
   (lambda (value min max)
      (cond ((< value min) min)
      ((> value max) max)
      (else value))))


Back to Index

Similar Entries

  • range-limit    xtlang