Negate: Difference between revisions

89 bytes added ,  1 year ago
"Paragraph cleanup"
(sign vs negate)
("Paragraph cleanup")
 
(7 intermediate revisions by 2 users not shown)
Line 1:
{{primitive|-x}}
 
The '''negate''' function, generally denoted by <code>-</code>, is used for getting the additive inverse of a number in K(numeric negation).
 
When applied directly to a numeric list literal, <code>-</code> should be followed by a space to prevent it from becoming the sign of theits first item.
 
The negate primitive is [[Atomicity|right atomic.]]<pre>
Line 15 ⟶ 17:
-7 65)
</pre>
 
[[Category:Verbs]]
[[Category:Operator verbs]]
[[Category:Primitives]]
720

edits