Distinct Computations Emerge From Compositional Curricula in In-Context Learning