Coder Social home page Coder Social logo

hoangpq / gleam Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gleam-lang/gleam

0.0 1.0 0.0 3.93 MB

⭐️ A statically typed language for the Erlang VM

Home Page: https://gleam.run

License: Apache License 2.0

Erlang 0.28% Rust 97.87% Makefile 0.11% Shell 0.15% Dockerfile 0.07% CSS 0.76% HTML 0.77%

gleam's Introduction

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 by 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.

gleam's People

Contributors

adamzapasnik avatar badboy avatar benreyn avatar borski avatar bsnyder788 avatar chouzar avatar crowdhailer avatar davydog187 avatar dirk avatar gamebox avatar gazler avatar ggpasqualino avatar hengestone avatar itsgreggreg avatar jwinnie-the-great avatar ktec avatar kyle-sammons avatar lpil avatar mainshayne233 avatar michaeljones avatar oneness avatar quinnwilton avatar rawburt avatar rjdellecese avatar scripttease avatar sjqtentacles avatar theannie avatar thehabbos007 avatar tomwhatmore avatar xtian avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.