Last active
February 24, 2017 17:18
-
-
Save dennym/fc9d73b1549c16713b714708f21c6e0b 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
code = "" | |
files = FileExt.ls_r(path) | |
code = code <> " " <> Enum.each files, fn(file) -> | |
File.read! file | |
|> join_code | |
|> String.codepoints | |
end | |
Logger.info(code) #=> is empty since code got assigned inside of Enum.each. Its supposed to be all strings that are read from the files merged together. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment