Skip to content

Instantly share code, notes, and snippets.

Created March 29, 2017 19:01
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 anonymous/68d5a71f7b109eb05d98768f4a1daee4 to your computer and use it in GitHub Desktop.
Save anonymous/68d5a71f7b109eb05d98768f4a1daee4 to your computer and use it in GitHub Desktop.
Scala Kata shared content
import com.scalakata._
@instrument class Playground {
class Person {
def name = "Ralph"
}
def f(p: Option[Person]): String = {
p.map(_.name).getOrElse("nope")
}
f(None)
f(Some(new Person))
help
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment