Can Transformers Learn Sequential Function Classes In Context?