Quiz
We'll cover the following...
We'll cover the following...
Test your knowledge of writing a functional core.
1.
In the following code, what role does Point.left/1
play?
defmodule Point do
def new() do
{0, 0}
end
def left({x, y}) do
{x+1, y}
end
def right({x, y}) do
{x+1, y}
end
def as_string(point) do
inspect(point)
end
end
A.
Constructor
B.
Reducer
C.
Converter
D.
Create
1 / 5