/gleam-lang_stdlib

🎁 Gleam's standard library

Primary LanguageGleamApache License 2.0Apache-2.0

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

This library is compatible with all versions of Erlang/OTP, NodeJS, and major browsers that are currently supported by their maintainers. If you have a compatibility issue with any platform open an issue and we'll see what we can do to help.