mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-09 18:00:33 +08:00
Add LockFreeLinkedList<E>.iterator
This commit is contained in:
parent
801e3a68b1
commit
32dc95a6e4
@ -68,6 +68,10 @@ fun <E> LockFreeLinkedList<E>.asSequence(): Sequence<E> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
operator fun <E> LockFreeLinkedList<E>.iterator(): Iterator<E> {
|
||||||
|
return asSequence().iterator()
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 构建链表结构然后转为 [LockFreeLinkedList]
|
* 构建链表结构然后转为 [LockFreeLinkedList]
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user