Tutorial by Examples

Let's implement a basic protocol that converts Kelvin and Fahrenheit temperatures to Celsius. defmodule Kelvin do defstruct name: "Kelvin", symbol: "K", degree: 0 end defmodule Fahrenheit do defstruct name: "Fahrenheit", symbol: "°F", degree: 0 en...

Page 1 of 1