Gleam apply function
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.
gleam run # Run the project
gleam test # Run the tests
gleam shell # Run an Erlang shell