Skip to content

vstreame/stdlib

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

stdlib

GitHub release Discord chat CI

Gleam's standard library! Documentation available on HexDocs.

Installation

Add gleam_stdlib to your Gleam project.

gleam add gleam_stdlib

Usage

Import the modules you want to use and write some code!

import gleam/string
import gleam/list.{contains}

fn usage() {
  string.append("str", "ing")
}

fn more_usage() {
  [1, 2, 3]
  |> contains(any: 2)
}

Targets

Gleam's standard library supports both targets: Erlang and Javascript.

Compatibility

  • For Erlang the minimum required OTP version is 22.
  • For NodeJS the minium required version is the oldest Maintenance LTS not marked as end-of-life as specified on https://nodejs.org/en/about/releases/.

Most of the standard library will run on older versions, but there are no garantuees.

About

🎁 Gleam's standard library

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Gleam 87.0%
  • Erlang 8.9%
  • JavaScript 4.1%