Last active
May 17, 2018 10:46
-
-
Save leandrocp/dc9ad3eec8a77c90f5a00f98f312497c to your computer and use it in GitHub Desktop.
io_inspect_3_label.ex
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
[1, 2, 3] | |
|> IO.inspect(label: "before") | |
|> Enum.map(&(&1 * 2)) | |
|> IO.inspect(label: "after") | |
|> Enum.sum | |
# Outputs | |
before: [1, 2, 3] | |
after: [2, 4, 6] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment