small medium large xlarge

14 Jan 2018, 14:38
Ryan (1 post)

Hey all,

Is anyone else having trouble compiling the “depth_navigator.ex” answer in the Recursion chapter? The function “_navigate(rest, current depth)” is giving me an undefined function/2 error.

I attempted to alter the navigate function at the beginning of the code, adding a “current depth” variable but the result of that is now the code runs an infinite loop.

Hoping someone can shed some light on this. Didn’t want to submit it as a tech error as I’m sure it’s just something I’m missing.

All the best. Ryan

25 Jan 2018, 21:39
Ulisses Herrera Freire de Almeida (8 posts)

Hi Ryan!

It was my bad. I replaced the name of the function _navigate to go_through and I forgot to change that line. You can replace by yourself to fix the problem. The next version of the book it will be fixed.

You must be logged in to comment