Skip to content

Instantly share code, notes, and snippets.

@pbalduino
Created March 6, 2014 01:50
Show Gist options
  • Select an option

  • Save pbalduino/9380614 to your computer and use it in GitHub Desktop.

Select an option

Save pbalduino/9380614 to your computer and use it in GitHub Desktop.
Solving the problem proposed by @salvianoo in https://gist.github.com/salvianoo/9380272
(defmacro %w [& coll]
`(map str (quote ~coll)))
(%w 1 2 3 4)
; ("1" "2" "3" "4")
(%w a b c d)
; ("a" "b" "c" "d")
(%w + - * /)
; ("+" "-" "*" "/")
@salvianoo
Copy link
Copy Markdown

Awesome! Thanks :D

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