import type { Nullable } from "@thi.ng/api" ; import { ensureIterable } from "@thi.ng/arrays/ensure-iterable" ; example param xs export function * concat < T > ( ... xs ) { for ( let x of xs ) { x != null && ( yield * ensureIterable ( x ) ) ; } }