Pure functional sequencer