small medium large xlarge

Generic-user-small
30 Jul 2013, 02:17
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

Dave_gnome_head_isolated_pragsmall
02 Aug 2013, 14:19
Dave Thomas (344 posts)

Yup, fixed in next release.

  You must be logged in to comment