8000 GitHub - monkeygroover/gleam: ✨ A statically typed language for the Erlang VM
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

monkeygroover/gleam

 
 

Repository files navigation

Gleam ✨

build

Gleam is a statically typed functional programming language for building scalable concurrent systems. It compiles to Erlang and has straightforward interop with other BEAM languages such as Erlang, Elixir and LFE.

⚠️ Gleam is pre-alpha software. You are welcome to try it, but it may do anything up to and including eating your laundry and then crashing.

pub enum Tree =
  | Leaf(Int)
  | Node(Tree, Tree)

pub fn any(tree, predicate) {
  case tree {
  | Leaf(i) -> predicate(i)
  | Node(left, right) -> any(left, predicate) || any(right, predicate)
  }
}

pub fn has_even_leaf(tree) {
  any(tree, fn(i) {
    i % 2 == 0
  })
}

For more information see the Gleam website: https://gleam.run.

About

✨ A statically typed language for the Erlang VM

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 89.4%
  • Erlang 10.2%
  • Makefile 0.4%
0