Structurefwcd.swift-utils 4.6.2Utils
Iterator
ExpiringList.swift:36struct Iterator
struct Iterator
import Utils
class ExpiringList<T>
A linked list of expiring elements.
init(dateProvider: @escaping () -> Date = Date.init)
var count: Int { get }
var isEmpty: Bool { get }
func append(_ element: T, expiry: Date)
func makeIterator() -> Iterator
typealias Element = T
protocol IteratorProtocol<Element>
A type that supplies the values of a sequence one at a time.
mutating func next() -> T?