Reputation: 971
I got a function
move :: Move -> Node -> Maybe Node
where I can use my bind monad to obtain a Maybe Node
(return n >>= move m)
where n::Node and m::Move, but how I can now fold through a list of Moves ([Move])?
I tried to do it with foldl but without success.
Upvotes: 1
Views: 976