Scala check if element is present in a list January 7, 2023 by Tarik Just use contains myFunction(strings.contains(myString))