Skip to content

darky/gleaf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gleaf

Package Version Hex Docs

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