Foldable results in 

This is based on #251. This PR cleans it up.

Closes #251, Fixes #98