Skip to content

MoeDevelops/tupler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tupler

Package Version Hex Docs

gleam add tupler
import tupler/construct

pub type Mascot {
  Mascot(name: String, language: String, is_awesome: Bool)
}

pub fn main() {
  let tuple = #("Lucy", "Gleam", True)

  tuple
  |> construct.three(Mascot)
}

Further documentation can be found at https://hexdocs.pm/tupler.

Development

gleam run   # Run the project
gleam test  # Run the tests
gleam shell # Run an Erlang shell

About

Use constructors directly with tuples

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages