#16467: Unhiding in a fully hidden Doubly-Linked List
-------------------------------------------------+-------------------------
       Reporter:  foosterhof                     |        Owner:
           Type:  defect                         |       Status:  new
       Priority:  major                          |    Milestone:  sage-6.3
      Component:  combinatorics                  |   Resolution:
       Keywords:  doubly linked list unhide      |    Merged in:
  empty                                          |    Reviewers:
        Authors:                                 |  Work issues:
Report Upstream:  N/A                            |       Commit:
         Branch:                                 |     Stopgaps:
   Dependencies:                                 |
-------------------------------------------------+-------------------------
Description changed by foosterhof:

Old description:

> An error occurs when in a fully hidden Doubly-Linked List an element is
> unhidden. All elements that come after it will also be unhidden.
>
> {{{
> l = sage.combinat.misc.DoublyLinkedList(xrange(5))
> l.hide(0)
> l.hide(1)
> l.hide(2)
> l.hide(3)
> l.hide(4)
> print l
> l.unhide(1)
> print l
> l.hide(1)
> print l
> }}}

New description:

 An error occurs when in a fully hidden Doubly-Linked List an element is
 unhidden. All elements that come after it will also be unhidden.

 {{{
 sage: l = sage.combinat.misc.DoublyLinkedList(xrange(5))
 sage: l.hide(0)
 sage: l.hide(1)
 sage: l.hide(2)
 sage: l.hide(3)
 sage: l.hide(4)
 sage: print l
 Doubly linked list of xrange(5): []
 sage: l.unhide(1)
 sage: print l
 Doubly linked list of xrange(5): [1, 2, 3, 4]
 sage: l.hide(1)
 sage: print l
 Doubly linked list of xrange(5): [2, 3, 4]
 }}}

--

--
Ticket URL: <http://trac.sagemath.org/ticket/16467#comment:1>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to