Movatterモバイル変換


[0]ホーム

URL:


Scala 3
3.7.4
LearnInstallPlaygroundFind A LibraryCommunityBlog
Scala 3
LearnInstallPlaygroundFind A LibraryCommunityBlog
DocsAPI
Generated with
Copyright (c) 2002-2025, LAMP/EPFL
Copyright (c) 2002-2025, LAMP/EPFL
Scala 3/scala/Option/WithFilter

WithFilter

scala.Option.WithFilter
classWithFilter(p:Option.this.A=>Boolean)

We need a whole WithFilter class to honor the "doesn't create a new collection" contract even though it seems unlikely to matter much in a collection with max size 1.

Attributes

Source
Option.scala
Graph
Supertypes
classObject
traitMatchable
classAny

Members list

Value members

Concrete methods

defflatMap[B](f:Option.this.A=>Option[B]):Option[B]

Attributes

Source
Option.scala
defforeach[U](f:Option.this.A=>U):Unit

Attributes

Source
Option.scala
defmap[B](f:Option.this.A=>B):Option[B]

Attributes

Source
Option.scala

Attributes

Source
Option.scala
In this article
Generated with
Copyright (c) 2002-2025, LAMP/EPFL
Copyright (c) 2002-2025, LAMP/EPFL

[8]ページ先頭

©2009-2025 Movatter.jp