my-test-3   xtlang


Defined in:  https://github.com/digego/extempore/tree/v0.8.9/examples/core/extempore_lang.xtm

Implementation

;; Closures can of course return closures.
;; notice the type signature of this closure
;; as printed in the logview "[[i64,i64]*]*"
;; being a closure that returns a closure
;; the outer closure takes no arguments
;; and the return closure takes an i64 argument
(bind-func my-test-3
  (lambda ()
    (lambda (x)
      (* x 3))))


Back to Index