Created
July 5, 2020 20:07
-
-
Save Kdan/aef816ca438b46294b83d91fcba409ee to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| /// A `FunctionCall` corresponds to the trigger of a function. | |
| struct FunctionCall: Hashable { | |
| /// The name of the function | |
| let name: String | |
| /// The parameters sent to the function. | |
| let parameters: [Any?] | |
| /// The number of times the function has been called. | |
| let calls: Int | |
| static func == (lhs: FunctionCall, rhs: FunctionCall) -> Bool { | |
| lhs.name == rhs.name | |
| } | |
| public func hash(into hasher: inout Hasher) { | |
| hasher.combine(name) | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment