Description Usage Arguments Value Examples
This function uniquely encodes two non-negative integers to a single non-negative integer, using the Cantor pairing function. See the Wikipedia article for more information.
1 | cantor_pairing(x, y)
|
x |
A non-negative integer. |
y |
A non-negative integer. |
A non-negative integer.
1 2 | cantor_pairing(0, 0)
cantor_pairing(47, 32)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.