Mod: Difference between revisions

193 bytes added ,  2 years ago
move outside links to citations
(Created page with "{{primitive|x!y}} The '''Mod''', '''Modulo''', '''Remainder''' or '''Residue''' (see [https://aplwiki.com/wiki/Residue APL])) function, denoted by <code>!</code>, is used for...")
 
(move outside links to citations)
Line 1:
{{primitive|x!y}}
The '''Mod''', '''Modulo''', '''Remainder''' or '''Residue''' (see [<ref>https://aplwiki.com/wiki/Residue APL])</ref>) function, denoted by <code>!</code>, is used for modulo in K.
 
Up until the K4 dialect, the modulo operator was [[Atomicity|left atomic]] on account of the [[rotate]] overload.
 
From K5 onward, the modulo primitive is [[Atomicity|right atomic.]]<ref>[https://chat.stackexchange.com/transcript/message/58587397#58587397 JohnEarnest on the order of arguments for mod in K]</ref>
 
<pre>
Line 15 ⟶ 19:
1 2 0 1 2 0 1 2 0 1 2 0
</pre>
== References ==
 
== History ==
 
 
[https://chat.stackexchange.com/transcript/message/58587397#58587397 JohnEarnest on the order of arguments for mod in K]