-
-
Save fitomad/19ac395e5ce1ac41ffc930d01e150a39 to your computer and use it in GitHub Desktop.
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
public protocol Originator | |
{ | |
/** | |
Crea un *snapshot* del modelo en un momento | |
en concreto. | |
*/ | |
func createMemento() -> Memento | |
/** | |
Restaura el modelo a partir de un *snapshot* | |
*/ | |
mutating func restore(from memento: Memento) -> Void | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment