
2 Jan
2017
2 Jan
'17
5:20 p.m.
Hi Sasa,
-- this confuses me, what is the _ here ? go is anonymous function, _ should stand for tuple ? and status xs from the top definition ? go _ status@(_, False) = status
The first argument of 'go' is '_', which means it's ignored. The second argument is 'status@(_, False)'. It's giving the tuple the name 'status' and pattern matching the tuple at once. If the pattern match succeeds, then the tuple named 'status' is returned by 'go' Greetings, Daniel