https://github.com/theonlytails/gleameter
An implementation of the International System of Units (SI) in Gleam
https://github.com/theonlytails/gleameter
Last synced: 4 months ago
JSON representation
An implementation of the International System of Units (SI) in Gleam
- Host: GitHub
- URL: https://github.com/theonlytails/gleameter
- Owner: TheOnlyTails
- Created: 2024-11-25T14:52:03.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-28T15:10:56.000Z (over 1 year ago)
- Last Synced: 2026-02-10T20:54:18.775Z (4 months ago)
- Language: Gleam
- Size: 25.4 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gleameter
[](https://hex.pm/packages/gleameter)
[](https://hexdocs.pm/gleameter/)
An implementation of the International System of Units (SI) in Gleam
```sh
gleam add gleameter@1
```
```gleam
import gleameter/units/length.{kilometer}
import gleameter/units/time.{hour}
import gleameter
pub fn main() {
let road_length = kilometer(30) // Length
let travel_time = hour(1) // Time
let car_speed = road_length |> gleameter.over(travel_time) // Rate(Length, Time)
}
```
Further documentation can be found at .