Skip to content

or

Use an or operator

Given a file named “main.scm” with:

(import (scheme base))
(write-u8 (if (or <values>) 65 66))

When I successfully run scheme main.scm

Then the stdout should contain exactly “<output>”.

Examples

valuesoutput
B
#fB
#tA
#f #fB
#f #tA

Return the first true value

Given a file named “main.scm” with:

(import (scheme base))
(write-u8 (or <values>))

When I successfully run scheme main.scm

Then the stdout should contain exactly “A”.

Examples

values
65
65 #f
#f 65