Modular arithmetic: Difference between revisions
Content added Content deleted
m (→{{header|J}}) |
|||
Line 707: | Line 707: | ||
=={{header|J}}== |
=={{header|J}}== |
||
J does not allow "operator redefinition", but J's operators are capable of operating on modular integers: |
|||
<lang J> f=: (+./1 1,:_101{.1x)&p.</lang> |
<lang J> f=: (+./1 1,:_101{.1x)&p.</lang> |