-
-
Save fitomad/c883541bc3d8ef0490bf1522843d0cea 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 CareTaker | |
{ | |
/// Todos los *snapshots* disponibles | |
var mementos: [Memento] { get } | |
/** | |
Guarda un *snapshot* | |
*/ | |
func saveMemento(_ memento: Memento) -> Void | |
/** | |
Recuperamos el último *snapshot* | |
*/ | |
func lastMemento() -> Memento? | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment