Skip to content

Instantly share code, notes, and snippets.

@ivangodfather
Last active February 27, 2019 16:22
Show Gist options
  • Select an option

  • Save ivangodfather/971a95e0ce32eb22f4fdf263e198718d to your computer and use it in GitHub Desktop.

Select an option

Save ivangodfather/971a95e0ce32eb22f4fdf263e198718d to your computer and use it in GitHub Desktop.
switch(firstObject, secondObject) {
case (is FirstClass, is FirstClass): return true
case (is FirstClass, is SecondClass): return false
....
}
@idrougge
Copy link
Copy Markdown

idrougge commented Feb 27, 2019

switch (firstObject, secondObject) {
case is (FirstClass, FirstClass): return true
case is (FirstClass, SecondClass): return false
....
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment