blob: 35352c48825929adcb8ba6be21bc754531271361 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# stdlib
<a href="https://github.com/gleam-lang/stdlib/releases"><img src="https://img.shields.io/github/release/gleam-lang/stdlib" alt="GitHub release"></a>
<a href="https://discord.gg/Fm8Pwmy"><img src="https://img.shields.io/discord/768594524158427167?color=blue" alt="Discord chat"></a>

Gleam's standard library!
Documentation available on [HexDocs](https://hexdocs.pm/gleam_stdlib/).
## Installation
Add `gleam_stdlib` to the dependencies section of your `gleam.toml`
```toml
[dependencies]
gleam_stdlib = "~> 0.18"
```
## Usage
Import the modules you want to use and write some code!
```rust
import gleam/string
import gleam/list.{contains}
fn usage() {
string.append("str", "ing")
}
fn more_usage() {
contains([1, 2, 3], any: 2)
}
```
|