shunjilin / stdlib

🎁 Gleam's standard library

Home Page:https://hexdocs.pm/gleam_stdlib/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

stdlib

GitHub release Discord chat CI

Gleam's standard library! Documentation available on HexDocs.

Installation

Add gleam_stdlib to the deps section of your rebar.config or mix.exs

{deps, [
    {gleam_stdlib, "0.14.0"}
]}
defp deps do
  [
    {:gleam_stdlib, "~> 0.14.0"},
  ]
end

Usage

Import the modules you want to use first

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

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

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

Quick reference

# Run the unit tests
rebar3 eunit

About

🎁 Gleam's standard library

https://hexdocs.pm/gleam_stdlib/

License:Apache License 2.0


Languages

Language:Rust 96.8%Language:Erlang 3.2%