Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save andrey-zakharov/e049d1f7190dc0434fec0a1538b8d953 to your computer and use it in GitHub Desktop.
Save andrey-zakharov/e049d1f7190dc0434fec0a1538b8d953 to your computer and use it in GitHub Desktop.
sealed class RecursiveMap<R, T> {
class Data<R, T>(val data: T): RecursiveMap<R, T>()
class Container<R, T>(private val map: Map<R, RecursiveMap<R, T>>) : RecursiveMap<R, T>(), Map<R, RecursiveMap<R, T>> by map
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment