removeDuplicates

fun removeDuplicates(decorations: List<Any>?, source: String?): List<Any>

Remove identical adjacent tags from decorations.

Return

the decorations after treatment

Parameters

decorations

see prettify.parser.Job.decorations

source

the source code

Throws

the size of decoration is not a multiple of 2