Transforming flat sequences to deeply nested collections in Clojure
One of the API services that I have developed recently for internal project returns a flat sequence of items, where each item in the sequence may or may not be related to other items with a parent-child relationship.