Skip to content

Instantly share code, notes, and snippets.

@ma2gedev
Created October 4, 2015 07:05
Show Gist options
  • Select an option

  • Save ma2gedev/506093a0f947fd49d292 to your computer and use it in GitHub Desktop.

Select an option

Save ma2gedev/506093a0f947fd49d292 to your computer and use it in GitHub Desktop.
Is it useful?
iex(1)> import PowerAssert.Debug
nil
iex(2)> x = [1,2,3,4]
[1, 2, 3, 4]
iex(3)> y = 2
2
iex(4)> puts_expr(x |> Enum.at(y))
x |> Enum.at(y)
| | |
| 3 2
[1, 2, 3, 4]
3
iex(5)>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment