leviathan
A simple library that implements the State Monad in Gleam!
Example
import leviathan as lv
fn tick() -> lv.State(s, Nil) {
use x <- lv.do(lv.get())
lv.put(x + 1)
}
Installation
To add this library as a dependency to a gleam project run the following command:
gleam add leviathan
Documentation
The auto-generated documentation can be founded here