Skip to content

Instantly share code, notes, and snippets.

@joaomilho
Created January 31, 2012 12:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joaomilho/1710276 to your computer and use it in GitHub Desktop.
Save joaomilho/1710276 to your computer and use it in GitHub Desktop.
Palíndromo
palindromo = "raiar"
palindromo == palindromo.reverse
@gustavoguichard
Copy link

palindromo = "Socorram-me, subi no onibus em Marrocos!".downcase.scan(/[a-z]/).join

=)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment