Skip to content

Instantly share code, notes, and snippets.

@6ewis
Created April 6, 2016 00:42
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 6ewis/4e280967cf6f33aed05463f3e4ec41ab to your computer and use it in GitHub Desktop.
Save 6ewis/4e280967cf6f33aed05463f3e4ec41ab to your computer and use it in GitHub Desktop.
(fn
palindrome?[lst]
(if
(or (empty? lst) (empty? (rest lst)))
true
(if
(not= (first lst) (last lst))
false
(palindrome?
(rest (butlast lst))
)
)
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment