@schlink Stupid solution: play.rust-lang.org/?version=st

I'm getting really fond of `fold` for states, and what you have is a state of "is everything I saw the same thing?" and the last element seen (to be able to compare in the next iteration). That's why I keep the "state" as a tuple of those two things and just keep updating on each new element.

Sign in to participate in the conversation

Server run by the main developers of the project 🐘 It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!