mirror of
https://github.com/krahets/hello-algo.git
synced 2026-07-11 15:06:07 +00:00
772183705e
* Add Russian docs site baseline * Add Russian localized codebase * Polish Russian code wording * Update ru code translation. * Update code translation and chapter covers. * Fix pythontutor extraction. * Add README and landing page. * placeholder of profiles * Use figures of English version * Remove chapter paperbook
21 lines
425 B
Swift
21 lines
425 B
Swift
/**
|
|
* File: Pair.swift
|
|
* Created Time: 2023-06-28
|
|
* Author: nuomi1 (nuomi1@qq.com)
|
|
*/
|
|
|
|
/* Пара ключ-значение */
|
|
public class Pair: Equatable {
|
|
public var key: Int
|
|
public var val: String
|
|
|
|
public init(key: Int, val: String) {
|
|
self.key = key
|
|
self.val = val
|
|
}
|
|
|
|
public static func == (lhs: Pair, rhs: Pair) -> Bool {
|
|
lhs.key == rhs.key && lhs.val == rhs.val
|
|
}
|
|
}
|