Skip to content

Instantly share code, notes, and snippets.

@trikitrok
Last active July 27, 2019 20:45
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 trikitrok/7976898dfdb2404c42e830699613fb84 to your computer and use it in GitHub Desktop.
Save trikitrok/7976898dfdb2404c42e830699613fb84 to your computer and use it in GitHub Desktop.
(ns fizzbuzz-pbt.core
(:require
[clojure.string :as string]))
(defn fizzbuzz []
(map #(string/replace (str %1 %2) #"^$" (str %3))
(cycle ["" "" "Fizz"])
(cycle ["" "" "" "" "Buzz"])
(range 1 101)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment