A simple Gleam module to check if a string is a palindrome.
gleam add palindromeimport 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.
gleam test # Run the tests
gleam shell # Run an Erlang shell