Connecting the dots: a comparative and developmental analysis of spatiotemporal pattern learning