Skip to content

Instantly share code, notes, and snippets.

@pppillai
Created May 17, 2020 18:32
Show Gist options
  • Save pppillai/f4ee463cbd75c5a20b8e074740c14f69 to your computer and use it in GitHub Desktop.
Save pppillai/f4ee463cbd75c5a20b8e074740c14f69 to your computer and use it in GitHub Desktop.
-module(palindorme).
-export([palindrome/1]).
palindrome(Name) ->
Name==palindrome(Name, []).
palindrome([], Result) ->
Result;
palindrome([H|T], Result) ->
palindrome(T, [H|Result]).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment