Skip to content

Instantly share code, notes, and snippets.

@dennym
Last active February 24, 2017 17:18
Show Gist options
  • Save dennym/fc9d73b1549c16713b714708f21c6e0b to your computer and use it in GitHub Desktop.
Save dennym/fc9d73b1549c16713b714708f21c6e0b to your computer and use it in GitHub Desktop.
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