k programming language

a flavor of apl, i understand?

apl

resources

ngn/k

ngn/k online

notes from eris' k class

operator precedence: always from right to left.

types:

lists are enclosed between parenthesis, and items separated with semicolons

equivalent to:

assignment is done with :

verbs

minus sign (-), unary is negate, binary is subtraction:

plus sign (+), binary is addition:

asterisk (*), unary is "first", binary is multiplication

vertical bar (|), unary is reverse, binary is mod?

with colon (:) one can force the use of the unary mode, e.g.

exclamation mark (!) applied to an integer produces the natural numbers from 0 to that integer minus one:

percent sign (%) is division

incoming links

apl

meta

compudanzas

contact

colophon

this work is dedicated to the public domain. CC0 1.0