Ergo.Stack.push

You're seeing just the function push, go back to Ergo.Stack module for more information.

Push an element onto an empty stack

Examples

iex> alias Ergo.Stack
iex> s = Stack.new()
iex> assert [1] = Stack.push(s, 1)
iex> assert [2, 1] = Stack.push(s, 1) |> Stack.push(2)