# sum

Sum

sum x

Supported in | K7, K9 |

**sum** is a primitive that is used to sum arrays or integers or characters.

It is equivalent to `+/`

in most K dialects.

sum 1 2 3 6. sum 1 2 3. sum 1 2 67 70. sum "abc" 294.

Works in: K7, K9

From The K Language Wiki

Sum

sum x

Supported in | K7, K9 |

**sum** is a primitive that is used to sum arrays or integers or characters.

It is equivalent to `+/`

in most K dialects.

sum 1 2 3 6. sum 1 2 3. sum 1 2 67 70. sum "abc" 294.

Works in: K7, K9

Retrieved from "https://wiki.k-language.dev/wiki/Sum?oldid=1505"

Cookies help us deliver our services. By using our services, you agree to our use of cookies.