StashExchange v0.1.0 StashExchange View Source

Implements a single value storage

Link to this section Summary

Functions

Retrieves a value from the storage and updates the storage with the provided new value

Link to this section Functions

Retrieves a value from the storage and updates the storage with the provided new value

Examples

iex> StashExchange.exchange(503)
1

iex> StashExchange.exchange("the value")
iex> StashExchange.exchange(1)
"the value"