Function: mergeTags()
mergeTags(
tags,from,into):string[]
Defined in: packages/agentos/src/cognition/library/tags.ts:393
A list with every label of from's key gone and into at the first place either stood, in the spelling the list
holds for it (its first label of into's key), else as given; each tag once, in the list's order, any other key the
list holds twice at its first label. A label with no key
(C++) is compared as written. A list that holds no label of from comes back unchanged. Pure: the list given is not
changed.
Parameters
tags
readonly string[]
from
string
into
string
Returns
string[]