This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private class ObjectWrapper { | |
let value: Any | |
init(_ value: Any) { | |
self.value = value | |
} | |
} | |
private class KeyWrapper<KeyType: Hashable>: NSObject { | |
let key: KeyType |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extension Hashable { | |
var hashNumber: NSNumber { | |
return NSNumber(value: hashValue) | |
} | |
} | |
private class ObjectWrapper { | |
let value: Any | |
init(_ value: Any) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// ProgrammerAssertions.swift | |
// Assertions | |
// | |
// Created by Mohamed Afifi on 12/20/15. | |
// Copyright © 2015 mohamede1945. All rights reserved. | |
// | |
import Foundation |