【发布时间】:2015-11-15 21:13:11
【问题描述】:
在早期版本的 scala 中,存在丢弃方法以丢弃解析器的结果:
lazy val throwThisAway: Parser[String] = (ows ~> discard(comma | EOF | EOL)) <~ ows
如何在当前版本的库中实现这一点......即在简单地做的时候
otherParser ~ throwThisAway ~ anotherParser ^^ { case a ~ b // only 2, not 3, parser results
【问题讨论】: