Skip to content

Instantly share code, notes, and snippets.

View renatorozas's full-sized avatar

Renato Rozas renatorozas

View GitHub Profile
@renatorozas
renatorozas / kv_db.erl
Last active March 15, 2016 01:44
Getting started with EUnit (Part 1)
-module(kv_db).
-type db() :: [].
-type results() :: nonempty_list({Key::atom(), Value::term()}).
-type err() :: {‘error’, string()}.
-export_type([db/0, results/0, err/0]).
% -spec new() -> db().