addWrites method

CompoundWrite addWrites(
  1. Path path,
  2. CompoundWrite updates
)

This write with every write of updates added below path.

Implementation

CompoundWrite addWrites(Path path, CompoundWrite updates) =>
    updates.writeTree.foldValues<CompoundWrite>(
      this,
      (Path relativePath, Node value, CompoundWrite accum) =>
          accum.addWrite(path.childPath(relativePath), value),
    );