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

Composition Expressions

A composition expression consists of two other expressions, separated by whitespace. The output of the first expression is then used as the input to the other. By adding another expression at the end, you again create a larger composition expression, and so on.

ProgramTypeValueError
"abc"Str"abc"
"abc" codePointsArr<Num…>[97, 98, 99]
"abc" codePoints lenNum3
"abc" codePoints len *3Num9

Note that when you compose with expressions that ignore their input, such as literals, only the last one has any effect on the output.

ProgramTypeValueError
1Num1
1 2Num2
1 2 3.5Num3.5