Solution 2-1

Here is a suggested solution for Étude 2-1.

geom.erl

-module(geom).
-export([area/2]).

area(L,W) -> L * W.

Get Études for Erlang now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.