scala 中的匹配模式
摘要:unapply 仅作匹配,不作其它输出。返回 Boolean 值 匹配内部数据。返回 Option[Tuple](跟 case class 类似) unapplySeq 匹配内部数据,返回 Option[Seq] 正则表达式 匹配捕获组返回参数(跟 case class 类似) 233
阅读全文
posted @ 2019-11-29 13:38
posted @ 2019-11-29 13:38
posted @ 2019-11-16 22:27
posted @ 2019-11-14 16:09
posted @ 2019-11-12 14:18