Prelude

Various utility functions that I found useful in my own programming.

This module contains functions that did not fit in anywhere else.

Source

Summary

ok(x)

Turns {:ok, x} tuples into x

Functions

ok(x)

Turns {:ok, x} tuples into x.

Might be useful for pipelines or IEx. Not safe, will raise exception on anything but a two-element tuple with :ok as the first element.

Source