Created
July 27, 2014 11:58
-
-
Save flash42/4588e4eba36833efc05d to your computer and use it in GitHub Desktop.
Comments for elvish documentation Appendix A
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See https://github.com/xiaq/elvish/issues/17