Add: Difference between revisions

From The K Language Wiki
Content added Content deleted
No edit summary
(change to pre tag)
Line 2:
The '''Add''' function, generally denoted by <code>+</code>, is used for addition in K.
 
The ''Add'' primitive is [[Atomicity|fully atomic.]]<syntaxhighlightpre>
1+2
3
Line 12:
(68 123
12 4)
</pre>
</syntaxhighlight>

Revision as of 08:07, 14 July 2021

Add
x+y

The Add function, generally denoted by +, is used for addition in K.

The Add primitive is fully atomic.

 1+2
3

 1 2 3+4 5 6
5 7 9

 ((23;45);(3;4))+((45;78);(9;0))
(68 123
 12 4)