Guest User

Untitled

a guest
Jan 20th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. fun <T> foo(option: Option<T>): String =
  2. if (option is Option.None) {
  3. "None"
  4. } else if (option is Option.Some) {
  5. "Some : ${option.value}"
  6. } else {
  7. "none"
  8. }
Add Comment
Please, Sign In to add comment