quemb.molbe.chemfrag.union_of_seqs¶
- quemb.molbe.chemfrag.union_of_seqs(*seqs)¶
Merge multiple sequences into a single
OrderedSet
.This preserves the order of the elements in each sequence, and of the arguments to this function, but removes duplicates. (Always the first occurrence of an element is kept.)
merge_seq([1, 2], [2, 3], [1, 4]) -> OrderedSet([1, 2, 3, 4])
- Return type:
OrderedSet
[TypeVar
(T
)]