Typically used for functional construction of containers.
These generic factory functions prevents the need for defining separate
member factory functions for each container/collection class opposite to
what Rust's std.collection types define as withLength, withCapacity,
etc. This adhere's to the dry-principle.
Construction of types.
Typically used for functional construction of containers.
These generic factory functions prevents the need for defining separate member factory functions for each container/collection class opposite to what Rust's std.collection types define as withLength, withCapacity, etc. This adhere's to the dry-principle.
See: nxt.container and std.container.