Count down - GoldenScheme - Scheme on JavaScript

Result:

Source:
(begin 
  (define countdown 
    (let ((count 4)) 
      (lambda () (set! count (- count 1)) count)
    )
  )
  (display (countdown))
  (display (countdown))
  (display (countdown))
  (countdown)
)
Home