单选题:h0306. .在对htmlText进行匹配时,应该使用哪一种case语句?
100.在对htmlText进行匹配时,应该使用哪一种case语句?
def getHtml(url: String): Try[String] = {...}
val myUrl = "http://justtest.org"
val htmlText = getHtml(myUrl)
val result = htmlText match {
???
}
case None(x) =>
case Failure(e) =>
case Url(y)
case Try2(v) =>
A.case Some(x) =>
B.case Success(v) =>
C.case String(x) =>
D.case Try1(v) =>
答案:B