func (list *BLL) Concat(list2 BLL) { list.Tail.Next = list2.Head list.Tail = list2.Tail list.Length += list2.Length list.ByteLength += list2.ByteLength }
(item LIBP)
| 221 | // } |
| 222 | |
| 223 | func (list *BLL) Push(item LIBP) { |
| 224 | if list == nil { |
| 225 | return |
| 226 | } |
| 227 | list.List.Push(item) |
| 228 | list.ByteLength += item.Value.Len() |
| 229 | } |
| 230 | |
| 231 | func (list *BLL) Shift() (item LIBP) { |
| 232 | if list == nil || list.Length == 0 { |
no test coverage detected