Scala 如何过滤未插入的内容?
我如何才能在不插入filterOpt的情况下进行过滤?我想删除notBe集合中项目名称所在的所有行Scala 如何过滤未插入的内容?,scala,slick,slick-3.0,Scala,Slick,Slick 3.0,我如何才能在不插入filterOpt的情况下进行过滤?我想删除notBe集合中项目名称所在的所有行 案例类TableFilter(必须是:选项[Set[String]],notBe:Option[Set[String]]) val q=项目 .filterOpt(filter.mustBe){case(item,mustBe)=>item.name inSet(mustBe)} .filterOpt(filter.notBe){case(item,notBe)=>item.name inSet
案例类TableFilter(必须是:选项[Set[String]],notBe:Option[Set[String]])
val q=项目
.filterOpt(filter.mustBe){case(item,mustBe)=>item.name inSet(mustBe)}
.filterOpt(filter.notBe){case(item,notBe)=>item.name inSet(notBe)}
.结果
多谢各位,
伊多