-
-
Save unfo/5005a3004cf58b1b7df3 to your computer and use it in GitHub Desktop.
This file contains 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
(def chans (re-seq #"#[^ ]+" "#dev-1 #dev-2")) | |
(println "class of channels: " (class chans) "; and count is " (count chans)) | |
(println "first: " (first chans)) | |
(println "rest: " (rest chans)) | |
(map #(println "should've joined " %) chans) | |
(println "autojoin should've fired by now") | |
-- | |
output: | |
class of channels: clojure.lang.LazySeq ; and count is 2 | |
first: #dev-1 | |
rest: (#dev-2) | |
autojoin should've fired by now | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment