| Crates.io | Cantor-Pair |
| lib.rs | Cantor-Pair |
| version | 0.1.2 |
| created_at | 2024-08-11 04:04:53.112155+00 |
| updated_at | 2024-08-11 04:23:14.857532+00 |
| description | A general algorithm to enable cantor pairing and unpairing between usizes. I'm not responsible for any damages if this code breaks GL GG |
| homepage | |
| repository | https://github.com/git4unrealnondev/Rust-Cantor-Pair |
| max_upload_size | |
| id | 1332954 |
| size | 2,911 |
A simple algorithm to enable cantor pairing has a small test
A simple library to do cantor pairing Call the cantor_pair function to generate a unique id Call the cantor_unpair function to get the unique numbers that relate to that one id
Notes: Not sure how efficient this is but it works lol I can't republish to crates.io to change the name. Oh well
Mostly using it for my own development but if someone else wants to use it then go crazy