我在尝试弄清楚这一点时遇到了困难,但没有成功。我正在尝试制作我自己的过滤器,而不是因为列表中的某些东西是false而不包括它,而是做一些事情。代码myfilter :: (a -> Bool) -> [a] -> [a] | p x = x : myfilter p xs
| otherwise= []:my
我有一个列表testEle,其中包含100个元素。我正在迭代它,只需要过滤包含第二个列表( finalList {a1,a2,a3...so on)中任何元素的值。testEle.stream().filter( x -> x.matches(// any one of finalList element here))
我不知道应该在.matches()中使用什么,或者是否