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} `; }, `
validate_monadic · v1.0.1

Monadic Validation in Gleam!

gleam add validate_monadic
import validate_monadic as validate

Usage

This module is the minimal set of functions around a single type alias for Result so it may be used as a “validation monad”.

The /examples folder contains two examples for full usage of this module, using every method contained in it.

Checkout out the examples here

Development

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