Skip to content

Latest commit

 

History

History
27 lines (17 loc) · 620 Bytes

README.md

File metadata and controls

27 lines (17 loc) · 620 Bytes

DialyzerPlayground

This project is a simple currency converter that converts Singapore dollars (SGD) to United States dollars (USD).

It aims to create example files that demonstrate how Dialyzer can catch simple type errors.

This is the result of following The Little Elixir & OTP Guidebook book from Benjamin Tan Wei Hao, released in 2017 by Manning Publications.

Installation

mix do deps.get, deps.compile

Try it and see the errors thrown by dialyzer

mix dialyzer

Play with the project

MyEnum.map(fn x -> x * 2 end, [1,2,3])

Hexy.rgb_to_hex({170, 201, 13})