Skip to content

Instantly share code, notes, and snippets.

@markmaynard
Last active June 8, 2019 12:20
Show Gist options
  • Save markmaynard/c71407f3de3aa08dd6ad4c097d712717 to your computer and use it in GitHub Desktop.
Save markmaynard/c71407f3de3aa08dd6ad4c097d712717 to your computer and use it in GitHub Desktop.
Using my first thing factor
val factory = ThingFactory()
factory.run<Thing1>() // "Run Fast!"
factory.play<Thing1>() // "Play Hard!"
factory.play<Thing2>() // "Play Hard!" ????
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment