Skip to content

Instantly share code, notes, and snippets.

@petrovg
Created September 22, 2016 21:05
Show Gist options
  • Select an option

  • Save petrovg/cc70040b5c749a52c8538f297ee1e8cc to your computer and use it in GitHub Desktop.

Select an option

Save petrovg/cc70040b5c749a52c8538f297ee1e8cc to your computer and use it in GitHub Desktop.
val streets = for { a <- angiesStreet; b <- jacksStreet } yield (angiesStreet + " --- " + jacksStreet) // <--- None, becuase Jack's got no address
println(streets)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment