Gleam apply function
It's type unsafe. Returned type will be coerced and it not soundness. Use it on your own risk.
gleam add gleafimport 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.
gleam run # Run the project
gleam test # Run the tests
gleam shell # Run an Erlang shell