Created
October 9, 2018 21:12
-
-
Save stasimus/f9b30dcc9d4cd416aa8544e5f60cf7c8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def url(protocol: Option[String], | |
host: Option[String], | |
file: Option[String]): Option[URL] = | |
(protocol, host, file).mapN(new URL(_, _, _)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment