Skip to content

Instantly share code, notes, and snippets.

@alanpeabody
Created January 12, 2012 18:32
Show Gist options
  • Save alanpeabody/1602251 to your computer and use it in GitHub Desktop.
Save alanpeabody/1602251 to your computer and use it in GitHub Desktop.
foosball.clj
(defn modfive [number]
(= 0 (mod number 5)))
(defn modthree [number]
(= 0 (mod number 3)))
(defn foosball [number]
(if (modthree number)
(if (modfive number) "foosball" "foos")
(if (modfive number) "ball" number)))
(map foosball (range 1 101))
@nowells
Copy link

nowells commented Jan 12, 2012

I would be more impressed if I saw tests. :-P

@beerlington
Copy link

TROLL.

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