> For the complete documentation index, see [llms.txt](https://gold.gitbook.io/kotlin/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gold.gitbook.io/kotlin/collections/elements-operations/contains.md).

# contains

리스트에 주어진 값이 있으면 true. List 를 넘길수도 있다.

```kotlin
val list = listOf(1, 2, 3, 4, 5)
println(list.contains(3))  // true
println(list.contains(6))  // false
println(list.containsAll(listOf(2, 5)))  // 2와 5 있음 -> true
println(list.containsAll(listOf(2, 6)))  // 2와 6 없음 -> false
```
