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

Loops

A note on for loops: KSL does not have a for item in array loop, or a for i in 0..n loop. Both of these are cool abstractions, but totally unnecessary. It’s unlikely that KSL will ever have these.

Also, for technically minded people. The for loop does have more instructions than the while loop (assuming you aren’t using the optimization flag via -op, with the optimization flag they’re virtually the same.)