Building function compositions for data processing