Functional interface for processing states.
fmt
Merge pull request #1 from naaman/state-func

State Scanner