Skip to content

Instantly share code, notes, and snippets.

@flash42
Created July 27, 2014 11:58
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 flash42/4588e4eba36833efc05d to your computer and use it in GitHub Desktop.
Save flash42/4588e4eba36833efc05d to your computer and use it in GitHub Desktop.
Comments for elvish documentation Appendix A
(require ['clojure.string :refer '(upper-case)])
;; In Clojure there is a good vector type for storing strings
(def strs ["aha" "LOLaha" "hahaLOL" "hum?"])
;; One can write it in clojure with the concatenative form as well
;; http://clojuredocs.org/clojure_core/clojure.core/-%3E%3E
(->> strs (filter #(re-find #"LOL" %)) (map upper-case) sort)
@xiaq
Copy link

xiaq commented Jul 28, 2014

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