npm installnpm run buildnpm start
Most basic Scheme syntax: https://www.scheme.com/tspl2d/grammar.html should work.
(define (map fn args)
(cond ((empty? args) (list))
(else (push-left (map fn (cdr args)) (fn (car args))))))
(map (lambda (x) (* x x)) (list 1 2 3 4))The above declares a function called map which takes a function and a list of arguments, and then applies the function to each argument in the list.
It should return a list of the squares of each number in the passed in list.