# Mendler-style iteration

> Episode of [Iowa Type Theory Commute](https://podistic.com/podcast/iowa-type-theory-commute.md) · Published May 19, 2020 · Duration 10:35 · Episode 64, season 1

- **Listen on Podistic:** https://podistic.com/episode/mendler-style-iteration
- **Audio:** https://www.buzzsprout.com/728558/episodes/3822887-mendler-style-iteration.mp3 (audio/mpeg)

## About this episode

Another type-based approach to termination-checking for recursive functions over inductive datatypes is to use so-called Mendler-style iteration.  On this approach, we write recursive functions by coding against a certain interface that features an abstract type R, which abstracts the datatype over which we are recursing; and a function from R to the result type of the recursion.  Subdata of the input data are available at type R only, not at the original datatype.  This allows...
