Subtract: Difference between revisions

From The K Language Wiki
Content added Content deleted
("More lowercasing")
("Better category ordering, add redirects to categories, fix pseudo-adverb categories")
 
Line 15: Line 15:
</pre>
</pre>


[[Category:Operator verbs]]
[[Category:Verbs]]
[[Category:Verbs]]
[[Category:Operator verbs]]
[[Category:Primitives]]
[[Category:Primitives]]

Latest revision as of 06:42, 9 July 2022

Subtract
x-y

The subtract or minus function, generally denoted by -, is used for subtraction in K.

The subtract primitive is fully atomic.

 1-2
-1

 1 2 3 - 4 5 6
-3 -3 -3

 ((23;45);(3;4)) - ((45;78);(9;0))
(-22 -33
 -6 4)