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/scala.util/Try/WithFilter

WithFilter

scala.util.Try.WithFilter
finalclassWithFilter(p:Try.this.T=>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
Try.scala
Graph
Supertypes
classObject
traitMatchable
classAny

Members list

Value members

Concrete methods

defflatMap[U](f:Try.this.T=>Try[U]):Try[U]

Attributes

Source
Try.scala
defforeach[U](f:Try.this.T=>U):Unit

Attributes

Source
Try.scala
defmap[U](f:Try.this.T=>U):Try[U]

Attributes

Source
Try.scala
defwithFilter(q:Try.this.T=>Boolean):Try.this.WithFilter

Attributes

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

[8]ページ先頭

©2009-2025 Movatter.jp