`(+) { |a, b| a } { |a, b| b } ` Did you know this was valid syntax

sclang allows to call methods in a “functional” style by passing the receiver as the first argument. You typically see this with control flow methods like if or while:

if (b) { ... } { ... }

is really the same as

b.if { ... } { ... }

See also Fork { ... } vs. { ... }.fork - #2 by Spacechild1

In sclang, math operators are also methods, that’s why you can use the “functional” notation.

Fun fact: this also works with class methods:

read(Buffer, s, "sounds/a11wlk01.wav")

is the same as

Buffer.read(s, "sounds/a11wlk01.wav")

:melting_face: