You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently there's no way of moving a list element to
an arbitrary place in the list without removing it
and using InsertBefore/After.
It's useful to be able to have external data structures
pointing at list elements that can move around arbitrarily,
so I suggest two new List methods:
// MoveAfter moves the element immediately after mark.
func (l *List) MoveAfter(e, mark *Element)
// MoveBefore moves the element immediately before mark.
func (l *List) MoveBefore(e, mark *Element)
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: