Skip to content

Instantly share code, notes, and snippets.

View zmagajna's full-sized avatar

Žiga Magajna zmagajna

  • Sonnen GmbH
  • Berlin
View GitHub Profile
@zmagajna
zmagajna / palin.erl
Last active November 27, 2019 14:11
-module(palin).
-export([server/1]).
% palindrome problem
%
% palindrome("Madam I\'m Adam.") = true
palindrome(Xs) -> palin(nocaps(nopunct(Xs))).
nopunct([]) -> [];