For the complete documentation index, see llms.txt. This page is also available as Markdown.
find
definition
deffind(p: (A) ⇒Boolean):Option[A]
demo
valdonuts:Seq[String] =Seq("Plain Donut", "Strawberry Donut", "Glazed Donut")// find a particular element in the sequence using the find functionvalplainDonut:Option[String] = donuts.find(_ =="Plain Donut")