Skip to content

Instantly share code, notes, and snippets.

@fitomad
Created April 23, 2019 10:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fitomad/c883541bc3d8ef0490bf1522843d0cea to your computer and use it in GitHub Desktop.
Save fitomad/c883541bc3d8ef0490bf1522843d0cea to your computer and use it in GitHub Desktop.
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