Instantly share code, notes, and snippets.
I'm curious if we could get the File.write into the pipeline as well somehow...
If i'm not mistaken, the reason for that is that when using pipelines, the resulting value of one method is what gets sent as the first paramater of the next call. File.write!() needs the path as the first parameter.
I'm pretty sure that could be taken care of using & notation.
The |> Enum.join("") part is unnecessary.