Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
val yarn: Yarn = when(spool) {
   is Yarn.Cotton -> knit()
   is Yarn.Silk -> knit()
   is Wool.Merino -> knit()
   is Wool.Alpaca -> knit()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment