Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Containers

Arrays store values of a common type. A comprehension builds a new array from a loop.

let values = [20 21]
let doubled = [loop value in values value*2]
printl(doubled[1])

Expected output:

42

Run the example from a file with dewy example.dewy. Its exact output is checked by the website build on the native release target.

Design boundary. The Containers reference specifies the complete language rules. A passing example covers this program only. See generated coverage for related acceptance programs and unmeasured areas.