set!
Set a global variable
Given a file named “main.scm” with:
(import (scheme base))
(define x #f)(set! x 65)(write-u8 x)
When I successfully run stak main.scm
Then the stdout should contain exactly “A”.
Set a local variable
Given a file named “main.scm” with:
(import (scheme base))
(let ((x #f)) (set! x 65) (write-u8 x))
When I successfully run stak main.scm
Then the stdout should contain exactly “A”.