element.version === currentVersion)) { versionNodes.unshift({ version: currentVersion, url: "#" }); } document.querySelector("#project-version").innerHTML = versionNodes.reduce( (acc, element) => { const status = currentVersion === element.version ? "selected disabled" : ""; return ` ${acc} `; }, `
antimonia · v1.1.0

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