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) |
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
jQuery._data(document.getElementsByClassName('eval')[0], "events" ).click[0].handler; |
NewerOlder