I think it's confusing to have to deal with function and predicate structures differently, so we could consider adding bool to the example structure.