Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/scala/16.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Scala 如何过滤未插入的内容?_Scala_Slick_Slick 3.0 - Fatal编程技术网

Scala 如何过滤未插入的内容?

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

我如何才能在不插入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(notBe)}
.结果
多谢各位, 伊多