A : List[String]
B : List[String]
I want to know if any element of List B is a slice of any element of list A.
Whats the fastest way to check it?
I think the shortest way is: ListA.exists{ListB.contains}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With