️ A friendly language for building type-safe, scalable systems!
Go to file
Louis Pilfold af26cd1ec8 v0.8.1
2020-05-19 17:09:23 +01:00
.github/workflows Remove build task dependency on format 2020-04-23 13:00:44 +01:00
bin Handle multiple tags in build script 2019-09-19 22:23:06 +01:00
img Logo 2019-10-11 10:52:27 +02:00
src v0.8.1 2020-05-19 17:09:23 +01:00
templates Fix mobile layout on Chrome 2020-05-07 19:34:39 +01:00
test More concise printing of formatter error 2020-05-03 18:26:30 +01:00
.gitattributes Mark website as generated for GitHub 2019-08-07 10:11:49 +01:00
.gitignore It compiles 2020-04-20 09:19:36 +01:00
build.rs Split out stdlib into github.com/gleam-lang/stdlib 2019-10-27 21:41:21 +00:00
Cargo.lock v0.8.1 2020-05-19 17:09:23 +01:00
Cargo.toml v0.8.1 2020-05-19 17:09:23 +01:00
CHANGELOG.md v0.8.1 2020-05-19 17:09:23 +01:00
CODE_OF_CONDUCT.md CODE_OF_CONDUCT.md 2018-09-22 14:44:53 +01:00
CONTRIBUTING.md Correct repo links 2020-02-03 10:45:55 +00:00
Dockerfile v0.7.0-rc1 2020-02-28 19:30:10 +00:00
LICENCE copyright 2019-06-23 21:30:28 +01:00
Makefile Askama templates 2020-04-12 19:25:28 +01:00
README.md Add sponsors to README 2020-05-06 00:12:55 +01:00
RELEASE.md Release checklist 2020-03-08 18:46:33 +00:00

Gleam logo

Fast, friendly, functional!

GitHub release IRC: #gleam-lang on chat.freenode.net

 

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 type Tree(value) {
  Leaf(value)
  Node(Tree(value), Tree(value))
};

pub fn any(tree: Tree(a), check: fn(a) -> Bool) -> Bool {
  case tree {
    Leaf(i) -> check(i)
    Node(left, right) -> any(left, check) || any(right, check)
  }
}

pub fn has_even_leaf(tree: Tree(Int)) -> Bool {
  any(tree, fn(i) {
    i % 2 == 0
  })
}

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

Sponsors

Gleam is kindly supported its sponsors. If you would like to support Gleam please consider sponsoring its development on GitHub.

These people are sponsoring at least $10 a month, enabling further Gleam development.