Stream processing based on hylomorphism