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
- Host: GitHub
- URL: https://github.com/darky/gleaf
- Owner: darky
- Created: 2024-05-14T19:49:49.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-15T08:44:58.000Z (about 2 years ago)
- Last Synced: 2025-02-23T20:47:18.924Z (over 1 year ago)
- Topics: apply, function, gleam
- Language: Gleam
- Homepage:
- Size: 7.81 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gleaf
[](https://hex.pm/packages/gleaf)
[](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
```