Composable streaming folds