WIP: Apply a function over a sequence.