About Interactive EoP
Elements of Programming (EoP), by Alexander Stepanov and Paul McJones, shows how to build programs from reusable algorithms and what properties those algorithms require of types and operations.
On Components Programming, you can read the book alongside the lab and edit and step through examples where available.
Official book website