https://github.com/wdalmut/ex-bijective
Bijective function in Elixir
https://github.com/wdalmut/ex-bijective
bijective-functions elixir shortener
Last synced: 12 months ago
JSON representation
Bijective function in Elixir
- Host: GitHub
- URL: https://github.com/wdalmut/ex-bijective
- Owner: wdalmut
- License: mit
- Created: 2018-01-03T09:25:23.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-08T08:45:26.000Z (over 8 years ago)
- Last Synced: 2024-10-29T08:40:43.496Z (over 1 year ago)
- Topics: bijective-functions, elixir, shortener
- Language: Elixir
- Size: 5.86 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Bijective
In mathematics, a bijection, bijective function, or one-to-one correspondence is a function
between the elements of two sets, where each element of one set is paired with exactly one
element of the other set, and each element of the other set is paired with exactly one
element of the first set.
```elixir
iex> Bijective.encode(19587376)
"bulJA"
iex> Bijective.decode("bulJA")
19587376
```
## Installation
You can install by adding `bijective` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[
{:bijective, "~> 0.0.2"}
]
end
```
Documentation can be found at: [https://hexdocs.pm/bijective](https://hexdocs.pm/bijective).