URL details: www.virtuouscode.com/tag/fpoo/

URL title: FPOO Chapter 1 in Elixir - avdi.codes
URL description: [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 list rather than a variable number of arguments, because Erlang doesn't do the varargs thing. As for implementation… def add_squares([n|ns]), do: n*n + add_squares(ns) def…
URL last crawled: 2022-06-26
URL speed: 0.388 MB/s, downloaded in 0.500 seconds

open external url

1 external links to this url

Only links from external domains are shown on this page.

found date
link text
from url
2022-06-22
implemented exercises