Skip to content

let*

Bind a variable

Given a file named “main.scm” with:

(import (scheme base))
(write-u8 (let* ((x 65)) x))

When I successfully run scheme main.scm

Then the stdout should contain exactly “A”.

Bind two variables

Given a file named “main.scm” with:

(import (scheme base))
(write-u8 (let* ((x 65) (y x)) y))

When I successfully run scheme main.scm

Then the stdout should contain exactly “A”.

Bind three variables

Given a file named “main.scm” with:

(import (scheme base))
(write-u8 (let* ((x 65) (y x) (z y)) z))

When I successfully run scheme main.scm

Then the stdout should contain exactly “A”.