Skip to main content

SequenceReplace

SequenceReplace[list,rules] replaces sequences in list according to the specified rule or list of rules. 

SequenceReplace[list,rules,n] does only the first n replacements.

SequenceReplace[rules] represents an operator form of SequenceReplace that can be applied to an expression.

Please visit the official Wolfram Language Reference for more details and examples on core symbols.