Not: Difference between revisions
Content added Content deleted
m (Lowercase title) |
("Better category ordering, add redirects to categories, fix pseudo-adverb categories") |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{lowercase title}} |
|||
{{primitive|~x}} |
{{primitive|~x}} |
||
Line 14: | Line 13: | ||
0 0 0 0 0 0 |
0 0 0 0 0 0 |
||
</pre> |
</pre> |
||
[[Category:Verbs]] |
|||
[[Category:Operator verbs]] |
|||
[[Category:Primitives]] |
Latest revision as of 06:42, 9 July 2022
Not
~x
The not function, generally denoted by ~
, gives the logical negation of an atom in K.
The not primitive is right atomic.
For numbers, returns 0 for nonzero numbers, and 1 if zero. characters also behave as integers.
~1 2 0 0 0 1 ~"sadasd" 0 0 0 0 0 0