mirai-core / net.mamoe.mirai.utils / LockFreeLinkedListNode / iterateBeforeFirst

iterateBeforeFirst

inline fun iterateBeforeFirst(filter: (LockFreeLinkedListNode<E>) -> Boolean): LockFreeLinkedListNode<E>

Returns the former node of the last node whence filter returns true