30 Jul 2013, 02:17
Generic-user-small

Greg Vaughn (5 posts)

Dave, your last code example in section 7.6:

def for_location([ head = [_, target_loc, _, _ ] | tail], target_loc) when loc == target_loc do [ head | for_location(tail, target_loc) ] end

It looks to me like the when clause is unnecessary. And it refers to an non-existent ‘loc’ variable

02 Aug 2013, 14:19
Dave_gnome_head_isolated_pragsmall

Dave Thomas (338 posts)

Yup, fixed in next release.

  You must be logged in to comment