Errors:
Output:

About

This is a live Scheem interpreter demo.

Examples

Here are a few examples you can try to run.

Recursive factorial

(begin 
    (define factorial (lambda (x)
        (if (= x 0)
            1
            (* x (factorial (- x 1))))))
    (factorial 3)
)

Function which returns function

(begin
    (define make-incrementer (lambda (inc)
        (lambda (x) (+ x inc))))
    (define increment5 (make-incrementer 5))
    (increment5 3)
)