Swift: Writing simple & composable data queries using Reader Monad

Balraj Singh
May 5, 2019 · 6 min read
Composable Query

Recently I was working on a sample project link. The objective of this project was to consume a list of user feedbacks in a given period of time, derive some information out of it and display it in a meaningful format. What I did was to fetch all the data in a selected range and then find an average rating and number of user who gave that rating over a periodic interval. Then…