Skip to content

Instantly share code, notes, and snippets.

Created June 9, 2011 12:00
Show Gist options
  • Select an option

  • Save anonymous/1016592 to your computer and use it in GitHub Desktop.

Select an option

Save anonymous/1016592 to your computer and use it in GitHub Desktop.
;; syuta's solution to A Half-Truth
;; https://4clojure.com/problem/83
(fn[& arg]
(loop[cur (first arg) cdr(rest arg)]
(if(empty? cdr)
false
(if(= cur (first cdr))
(recur (first cdr) (rest cdr))
true))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment