/** * @tsplus static Tree.Aspects fold * @tsplus pipeable Tree fold */ export function fold_(f: (a: A, bs: Chunk) => B) { return (self: Tree): B => f(self.value, self.forest.map((_) => _.fold(f))) }