import type { Compound, Value } from "./values"; import type { GenericEmbedded } from "./embedded"; import { Dictionary, Set } from "./dictionary"; export function isCompound(x: Value): x is Compound { return (Array.isArray(x) || Set.isSet(x) || Dictionary.isDictionary(x)); } export function isSequence(x: Value): x is Array> { return (Array.isArray(x) && !('label' in x)); }