Example #1
0
        public virtual IValueContainer <T> SplitOff()
        {
            LazinatorLinkedList <T> partSplitOff = (LazinatorLinkedList <T>)CreateNewWithSameSettings();
            int numToMove = Count / 2;

            for (int i = 0; i < numToMove; i++)
            {
                partSplitOff.Add(this[0]);
                RemoveAt(0);
            }
            return(partSplitOff);
        }
Example #2
0
 public ValueEnumerator(LazinatorLinkedList <T> list)
 {
     List        = list;
     CurrentNode = default;
 }