private DropCollectStack <T> With(DropStack <T>?items = null, DropStack <T>?itemsTraverser = null, ImmutableStack <T> partialReversedItems = null, DropStack <T>?partialRebuiltItems = null) { return(new DropCollectStack <T>(items ?? _items, itemsTraverser ?? _itemsTraverser, partialReversedItems ?? _partialReversedItems, partialRebuiltItems ?? _partialRebuiltItems)); }
private Queue(DropCollectStack <T> incoming, DropStack <T> outgoing, DropStack <T> partialOutgoing, DropStack <T> incomingTraverser) { this._incoming = incoming; this._outgoing = outgoing; this._partialOutgoing = partialOutgoing; this._incomingTraverser = incomingTraverser; }
private DropCollectStack(DropStack <T> items = default(DropStack <T>), DropStack <T> itemsTraverser = default(DropStack <T>), ImmutableStack <T> partialReversedItems = null, DropStack <T> partialRebuiltItems = default(DropStack <T>)) { this._items = items; this._itemsTraverser = itemsTraverser; this._partialReversedItems = partialReversedItems ?? ImmutableStack <T> .Empty; this._partialRebuiltItems = partialRebuiltItems; }
private Queue <T> With(DropCollectStack <T> items = null, DropStack <T>?ready = null, DropStack <T>?reStack = null, DropStack <T>?reFeed = null) { return(new Queue <T>( items ?? _incoming, ready ?? _outgoing, reStack ?? _partialOutgoing, reFeed ?? _incomingTraverser)); }