Move compose(func1, func2) out of iterate(func, seq) and name some variables more properly.