geam 0.2.3

Experimental Rust-embedded execution runtime for typed Gleam programs
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import inventory_format

pub fn label(prefix: String, value: String) {
  inventory_format.decorate(prefix, value)
}

pub fn double(value: Int) {
  value * 2
}

pub fn choose(enabled: Bool, left: Float, right: Float) {
  case enabled {
    True -> left
    False -> right
  }
}