Skip to content

A way to reference last value in REPL #30

@gludit

Description

@gludit

Often, usually when making remote requests or doing some other slow computations, I want to reference the value of last expression in the REPL that I forgot to create binding for. Ruby's irb supports _ on the right side of a bind to refer to last value (e.g. x = _, but also just typing _ + 1), while Elixir's iex uses a v/0 (invoked as just v) helper function.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions