mirror of
https://github.com/divkit/divkit.git
synced 2026-06-06 20:07:59 +00:00
710f12e3a5
memoizing image placeholders; updated Base, CommonCore
15 lines
341 B
Swift
15 lines
341 B
Swift
// Copyright 2019 Yandex LLC. All rights reserved.
|
|
|
|
public protocol OrderedDictionary {
|
|
associatedtype Item
|
|
|
|
init()
|
|
|
|
func insertFirst(key: String, item: Item)
|
|
func value(for key: String) -> Item?
|
|
func removeLast() -> (key: String, item: Item)?
|
|
func remove(key: String) -> Item?
|
|
|
|
func asArray() -> [(key: String, item: Item)]
|
|
}
|