3 ms·
If the list was a list of game states, would foldl makes sense as a map that teats for winning or death conditions?
by idclip 7y ago
If the list was a list of game states,
would foldl makes sense as a map that teats for winning or death conditions?
- lmm 7y agoNo, you want foldr for that because you want the fold to finish as soon as you reach one of those conditions.