FPOO Chapter 5: Classes

[boilerplate bypath=”fp-oo”] So far, my tiny object system in Elixir has been stowing all methods directly in instances. Chapter 5 of FPOO directs me to move instance methods out into…

Read More

FPOO Chapter 1 in Elixir

[boilerplate bypath=”fp-oo”] Exercise 3: add-squares First up, we have add-squares . Let’s write a test… test “1.18-3: add-squares” do assert(add_squares([1, 2, 5]) == 30) end My Elixir version takes a…

Read More