Add `including()` methods to `Document`
Pre-release
Pre-release
Document gains including() method that allows you to easily add includes to the document (or more accurately create a new Document with the given includes added to it). There are actually two variants of this method:
- Take a
DocumentwithIncludeTypeofNoIncludesand map it to aDocumentwith the given includes in whatever new type you would like. - Take a
DocumentwithIncludeTypeother thanNoIncludesand add more of the same type of includes to it.