series: Adopt functional style

As discussed in #79.
Merge pull request #89 from sjakobi/functional-series

series: Adopt functional style