DEV Community

loading...

Discussion on: Daily Challenge #9 - What's Your Number?

Collapse
johncip profile image
jmc

Clojure:

(defn format-number [digits]
  (apply format "(%s%s%s) %s%s%s-%s%s%s%s" digits))