Skip to content
forked from gleam-lang/gleam

⭐️ A statically typed language for the Erlang VM

License

Notifications You must be signed in to change notification settings

tsloughter/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.

It looks like this:

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

Packages

No packages published

Languages

  • Rust 95.6%
  • Erlang 3.0%
  • Other 1.4%