antimonia

antimonia — antipatterns & escape hatches for programming Gleam, wrong :)

please please do not use this library if you can i just made it bc i thought it was silly

Package Version Hex Docs

gleam add antimonia@1
import antimonia/ctrl
import antimonia/mutable
import gleam/int
import gleam/io

pub fn main() -> Nil {
  let #(counter, set_counter) = mutable.tuple_from(0)
  {
    use <- ctrl.repeat(5)
    io.println("counter is at " <> int.to_string(counter()))
    set_counter(counter() + 1)
  }
}

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

Development

gleam run   # Run the project
gleam test  # Run the tests
Search Document