https://github.com/farism/mint-bitwise
Bitwise operators for mint-lang
https://github.com/farism/mint-bitwise
Last synced: 5 months ago
JSON representation
Bitwise operators for mint-lang
- Host: GitHub
- URL: https://github.com/farism/mint-bitwise
- Owner: farism
- Created: 2023-08-26T09:38:35.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-26T09:59:49.000Z (almost 3 years ago)
- Last Synced: 2025-05-21T10:49:17.867Z (about 1 year ago)
- Language: Mint
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Bitwise functions for Mint
Includes:
* **and** - Bitwise `&` operator
* **or** - Bitwise `|` operator
* **xor** - Bitwise `^` operator
* **not** - Bitwise `~` operator
* **shiftLeftBy** - Shift bits to the left by a given offset, filling new bits with zeros.
* **shiftRightBy** - Shift bits to the right by a given offset, filling new bits with whatever is the topmost bit.
* **shiftRightZfBy** - Shift bits to the right by a given offset, filling new bits with zeros.
# Installing
Add dependency to `mint.json` and run `mint install`
```
"dependencies": {
"array-extra": {
"repository": "https://github.com/farism/mint-bitwise",
"constraint": "0.0.0 <= v < 1.0.0"
}
}
```