I recently read couch-db source code, I find this type definition that I don't understand:
-type branch() :: {Key::term(), Value::term(), Tree::term()}.
-type path() :: {Start::pos_integer(), branch()}.
-type tree() :: [branch()].
I read the Erlang doc , but what is the meaning of Start , Key , Value and Tree ? From what I understand, they are Erlang variables! I did not find any information about this in the Erlang doc .
Chang source
share