Skip to content

Instantly share code, notes, and snippets.

@le0nidas
Created January 7, 2021 13:17
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 le0nidas/7f76a1ae53f02440b8ed1d9ceae28a58 to your computer and use it in GitHub Desktop.
Save le0nidas/7f76a1ae53f02440b8ed1d9ceae28a58 to your computer and use it in GitHub Desktop.
class Memento(text: List<String>, caretPosition: Int) {
val text: List<String>
val caretPosition: Int
init {
this.text = ArrayList(text)
this.caretPosition = caretPosition
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment