Today I Learned

A Hashrocket project

IEx Last Return

The last item returned in an IEx session is accessible via the v() function. To get the item, call the function with no argument.

iex()> 1
1
iex()> v()
1

This function takes a negative number as an argument, representing n steps back through history.

Looking for help? At Hashrocket, we 💜 Elixir! From our many Elixir client projects, to sponsoring the Chicago Elixir Meetup, to the source code for this application, we are invested in this community. Contact us today to talk about your Elixir project.