Reputation: 113
Here is my code
lotto blacklista size board current = [black | blacklista<-action current , warunki blacklista,
if end current
then if check board blacklista
then black <- blacklista
else False
else black <- lotto blacklista size board (next current) ]
Can you tell me why I am getting parse error in this line?
then black <- blacklista
Upvotes: 1
Views: 151
Reputation: 33637
From whatever context you have provided, it seems you want something like this:
lotto blacklista size board current = let blist = action current warunki blacklista in
[black | black <- if end current && check board blist then blist
else lotto blacklista size board (next current)]
Upvotes: 1