small medium large xlarge

03 Dec 2017, 05:09
Dave Miller (1 post)

Thought I’d point out what I perceived to be a potential typo. Loving the book so far!

Toward the bottom of page 31, I believe forested?/3 should in fact be forested?/1

Text in question:

First, let’s recompile the Island module so that we’ll have access to the guess/2
and _forested?/3_ functions we just wrote.


def forested?(island), do:
    MapSet.equal?(island.coordinates, island.hit_coordinates)
You must be logged in to comment