palindrome
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