import type { DeepArrayValue } from "@thi.ng/api" ; import { isNotStringAndIterable } from "@thi.ng/checks/is-not-string-iterable" ; import type { Transducer } from "./api.js" ; import { flattenWith } from "./flatten-with.js" ; remarks Syntax sugar for  flattenWith . If `src` is given, yields
 * iterator of results.
 *
 *  example param src export function flatten < A , B = DeepArrayValue < A > > ( ) ; export function flatten < A , B = DeepArrayValue < A > > ( src ) ; export function flatten ( src ? ) { return flattenWith < any , any > ( ( x ) => ( isNotStringAndIterable ( x ) ? x : undefined ) , src ! ) ; }