gleaf
Gleam apply function
❗ Disclaimer ❗
It’s type unsafe. Returned type will be coerced and it not soundness. Use it on your own risk.
gleam add gleaf
import gleaf
pub fn main() {
[1, 2, 3]
|> gleaf.apply(fn(a, b, c) { a + b + c }) // 6
}
Further documentation can be found at https://hexdocs.pm/gleaf.
Development
gleam run # Run the project
gleam test # Run the tests
gleam shell # Run an Erlang shell