Sum: Difference between revisions
Content added Content deleted
(Created page with "{{primitive|sum x}} '''sum''' is a primitive that is used to sum arrays or integers or characters. It is equivalent to <code>+/</code> in most K dialects. <pre> sum 1 2 3...") |
("Trailing whitespace") |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1:
{{primitive|sum x|in=K7, K9}}
'''sum''' is a primitive that is used to sum arrays or integers or characters.
Line 8:
sum 1 2 3
6.
sum 1 2
3.
sum 1 2 67
Line 16:
</pre>
{{works in|K7, K9}}
[[Category:Verbs]]
[[Category:Named verbs]]
[[Category:Primitives]]
|
Latest revision as of 07:59, 9 July 2022
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