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.collection/SortedSetOps/WithFilter

WithFilter

scala.collection.SortedSetOps.WithFilter
classWithFilter[+A,+IterableCC[_],+CC <:(SortedSet)](self:SortedSetOps[A,CC,_] &IterableOps[A,IterableCC,_],p:A=>Boolean) extendsWithFilter[A,IterableCC]

SpecializeWithFilter for sorted collections

Attributes

Source
SortedSet.scala
Graph
Supertypes
classWithFilter[A,IterableCC]
classWithFilter[A,IterableCC]
classObject
traitMatchable
classAny
Show all

Members list

Value members

Concrete methods

defflatMap[B :Ordering](f:A=>IterableOnce[B]):CC[B]

Attributes

Source
SortedSet.scala
defmap[B :Ordering](f:A=>B):CC[B]

Attributes

Source
SortedSet.scala
overridedefwithFilter(q:A=>Boolean):WithFilter[A,IterableCC,CC]

Further refines the filter for thisfiltered sorted collection.

Further refines the filter for thisfiltered sorted collection.

Value parameters

q

the predicate used to test elements.

Attributes

Returns

an object of classWithFilter, which supportsmap,flatMap,foreach, andwithFilter operations. All these operations apply to those elements of this sorted collection which also satisfy bothp andq predicates.

Definition Classes
Source
SortedSet.scala

Inherited methods

defflatMap[B](f:A=>IterableOnce[B]):IterableCC[B]

Builds a new collection by applying a function to all elements of thefiltered outer collection containing thisWithFilter instance that satisfy

Builds a new collection by applying a function to all elements of thefiltered outer collection containing thisWithFilter instance that satisfy

Type parameters

B

the element type of the returned collection.

Value parameters

f

the function to apply to each element.

Attributes

Returns

a new collection resulting from applying the given collection-valued functionf to each element of the filtered outer collection and concatenating the results.

Inherited from:
WithFilter
Source
Iterable.scala
defforeach[U](f:A=>U):Unit

Applies a functionf to all elements of thefiltered outer collection.

Applies a functionf to all elements of thefiltered outer collection.

Type parameters

U

the type parameter describing the result of functionf. This result will always be ignored. TypicallyU isUnit, but this is not necessary.

Value parameters

f

the function that is applied for its side-effect to every element. The result of functionf is discarded.

Attributes

Inherited from:
WithFilter
Source
Iterable.scala
defmap[B](f:A=>B):IterableCC[B]

Builds a new collection by applying a function to all elements of thefiltered outer collection.

Builds a new collection by applying a function to all elements of thefiltered outer collection.

Type parameters

B

the element type of the returned collection.

Value parameters

f

the function to apply to each element.

Attributes

Returns

a new collection resulting from applying the given functionf to each element of the filtered outer collection and collecting the results.

Inherited from:
WithFilter
Source
Iterable.scala
In this article
Generated with
Copyright (c) 2002-2025, LAMP/EPFL
Copyright (c) 2002-2025, LAMP/EPFL

[8]ページ先頭

©2009-2025 Movatter.jp