https://github.com/qqwy/elixir_guard_safe_modulo
The ridiculous guard-safe implementation for a floored modulo operation.
https://github.com/qqwy/elixir_guard_safe_modulo
Last synced: 6 months ago
JSON representation
The ridiculous guard-safe implementation for a floored modulo operation.
- Host: GitHub
- URL: https://github.com/qqwy/elixir_guard_safe_modulo
- Owner: Qqwy
- Created: 2016-08-11T19:19:45.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2020-05-26T13:33:07.000Z (over 5 years ago)
- Last Synced: 2025-02-09T23:27:44.620Z (8 months ago)
- Language: Elixir
- Size: 6.84 KB
- Stars: 4
- Watchers: 4
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Modulo
This repository contains the source code that was extracted from [my Pull Request on the Elixir core language](https://github.com/elixir-lang/elixir/pull/5112).
It adds the `Modulo.mod/2` macro, which is a guard-safe implementation of the floored remainder operation.
Read the blog article I wrote about it [here](https://medium.com/@W_Mcode/down-the-rabbit-hole-defining-a-guard-safe-modulo-operation-in-elixir-6335ade7c078#.jx5phcwv9).