> For the complete documentation index, see [llms.txt](https://www.selinux.tech/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.selinux.tech/scala/function-operation/f/find.md).

# find

## definition

```scala
    def find(p: (A) ⇒ Boolean): Option[A]
```

## demo

```scala
val donuts: Seq[String] = Seq("Plain Donut", "Strawberry Donut", "Glazed Donut")

// find a particular element in the sequence using the find function
val plainDonut: Option[String] = donuts.find(_ == "Plain Donut")
```
