Created
September 8, 2013 15:00
-
-
Save jprudent/6485375 to your computer and use it in GitHub Desktop.
Convert a clojure sequence to a scala.collection.immutable.List
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
(defn to-scala-list [& vals] | |
(reduce | |
#(.apply scala.collection.immutable.$colon$colon$/MODULE$ %2 %1) | |
(scala.collection.immutable.Nil$/MODULE$) | |
(map to-jmhc-tile vals))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment