1
This commit is contained in:
parent
61a612b594
commit
a6abd190f9
@ -103,6 +103,10 @@ func (this *ListHead) isCursor() bool {
|
|||||||
return this.data == this
|
return this.data == this
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (this *ListHead) IsFirst(entry* ListHead) bool {
|
||||||
|
return this.next == entry
|
||||||
|
}
|
||||||
|
|
||||||
func (this *ListHead) ForEach(cb ListHead_Foreach_Func) {
|
func (this *ListHead) ForEach(cb ListHead_Foreach_Func) {
|
||||||
for pos := this.next; pos != this; pos = pos.next {
|
for pos := this.next; pos != this; pos = pos.next {
|
||||||
if !cb(pos.data) {
|
if !cb(pos.data) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user