Skip to content

Instantly share code, notes, and snippets.

@patrickcousins
Created April 12, 2018 03:44
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 patrickcousins/3aa31113d4e1c6d713dc9791aeaab64c to your computer and use it in GitHub Desktop.
Save patrickcousins/3aa31113d4e1c6d713dc9791aeaab64c to your computer and use it in GitHub Desktop.
val yarn = when(spool) {
   is Yarn.Wool -> knit()
   is Yarn.Cotton -> knit()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment