DummyCalc
DummyCalc is an Elixir library to demonstrate how to create a library,
how to use it from another module and how to publish it to Hex.
DummyCalc provides basic arithmetic operations:
DummyCalc.add(a,b): additionDummyCalc.sub(a,b): subtractionDummyCalc.mult(a,b): multiplicationDummyCalc.dic(a,b): division
Installation
Depending on where the library is located, add dummy_calc to your list of
dependencies in mix.exs:
From the local filesystem:
def deps do [ {:dummy_calc, path: "../dummy_calc" } ] endFrom gitlab:
def deps do [ {:dummy_calc, git: "https://gitlab.com/mszmurlo/dummy_calc.git"} ] endFrom Hex:
def deps do [ {:dummy_calc, "~> 0.1.0"} ] end