An open API service indexing awesome lists of open source software.

https://github.com/darky/gleaf

Gleam apply function
https://github.com/darky/gleaf

apply function gleam

Last synced: 3 months ago
JSON representation

Gleam apply function

Awesome Lists containing this project

README

          

# gleaf

[![Package Version](https://img.shields.io/hexpm/v/gleaf)](https://hex.pm/packages/gleaf)
[![Hex Docs](https://img.shields.io/badge/hex-docs-ffaff3)](https://hexdocs.pm/gleaf/)

Gleam apply function

### ❗ Disclaimer ❗

It's type unsafe. Returned type will be coerced and it not soundness. Use it on your own risk.

```sh
gleam add gleaf
```
```gleam
import gleaf

pub fn main() {
[1, 2, 3]
|> gleaf.apply(fn(a, b, c) { a + b + c }) // 6
}
```

Further documentation can be found at .

## Development

```sh
gleam run # Run the project
gleam test # Run the tests
gleam shell # Run an Erlang shell
```