Not: Difference between revisions

Jump to navigation Jump to search
2 bytes removed ,  23:04, 4 November 2019
no edit summary
Miraheze>Adám Brudzewsky
Miraheze>Adám Brudzewsky
No edit summary
Line 1: Line 1:
{{Built-in|Not|~}} is a [[Primitive function|primitive]] [[monadic]] [[scalar function]] that returns the [https://en.wikipedia.org/wiki/Negation logical negation] of a [[Boolean]] argument—that is, 0 if the argument is 1 and 1 if it is 0. In some languages, such as [[J]], it is extended so that Not <source lang=apl inline>x</source> is equivalent to <source lang=apl inline>1-x</source> while in others, such as [[K]], it is extended so that Not <source lang=apl inline>x</source> is equivalent to <source lang=apl inline>0≠x</source>.
{{Built-in|Not|~}} is a [[Primitive function|primitive]] [[monadic]] [[scalar function]] that returns the [https://en.wikipedia.org/wiki/Negation logical negation] of a [[Boolean]] argument—that is, 0 if the argument is 1 and 1 if it is 0. In some languages, such as [[J]], it is extended so that Not <source lang=apl inline>x</source> is equivalent to <source lang=apl inline>1-x</source> while in others, such as [[K]], it is extended so that Not <source lang=apl inline>x</source> is equivalent to <source lang=apl inline>0=x</source>.


== Examples ==
== Examples ==

Navigation menu