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} `; }, `
palindrome · v0.2.0

palindrome

Package Version Hex Docs

A simple Gleam module to check if a string is a palindrome.

gleam add palindrome
import palindrome

pub fn main() {
  let result = "racecar"
  let is_result_palindrome = palindrome.is_it("racecar")
  io.debug(is_result_palindrome) // True
}

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

Development

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