geam-core 0.2.1

Typed Gleam planning, host, and execution core for Geam
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
fn select(first: Int, second: a) -> a {
  let _ = first
  second
}

fn apply(function: fn(Int, a) -> a, value: a) -> a {
  function(0, value)
}

pub fn main() {
  let as_function: fn(Int, Int) -> Int = select
  #(select(0, 41), as_function(0, 42), apply(select, 43))
}

// @geam:expect Tuple([Int(41), Int(42), Int(43)])