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/StringOps/WithFilter

WithFilter

scala.collection.StringOps.WithFilter

A lazy filtered string. No filtering is applied until one offoreach,map orflatMap is called.

Attributes

Source
StringOps.scala
Graph
Supertypes
classObject
traitMatchable
classAny

Members list

Value members

Concrete methods

Builds a new collection by applying a function to all chars of this filtered string and using the elements of the resulting collections.

Builds a new collection by applying a function to all chars of this filtered string and using the elements of the resulting collections.

Value parameters

f

the function to apply to each char.

Attributes

Returns

a new collection resulting from applying the given collection-valued functionf to each char of this string and concatenating the results.

Source
StringOps.scala

Builds a new string by applying a function to all chars of this filtered string and using the elements of the resulting Strings.

Builds a new string by applying a function to all chars of this filtered string and using the elements of the resulting Strings.

Value parameters

f

the function to apply to each char.

Attributes

Returns

a new string resulting from applying the given string-valued functionf to each char of this string and concatenating the results.

Source
StringOps.scala
defforeach[U](f:Char=>U):Unit

Applyf to each element for its side effects.

Applyf to each element for its side effects. Note: [U] parameter needed to help scalac's type inference.

Attributes

Source
StringOps.scala
defmap[B](f:Char=>B):IndexedSeq[B]

Builds a new collection by applying a function to all chars of this filtered string.

Builds a new collection by applying a function to all chars of this filtered string.

Value parameters

f

the function to apply to each char.

Attributes

Returns

a new collection resulting from applying the given functionf to each char of this string and collecting the results.

Source
StringOps.scala

Builds a new string by applying a function to all chars of this filtered string.

Builds a new string by applying a function to all chars of this filtered string.

Value parameters

f

the function to apply to each char.

Attributes

Returns

a new string resulting from applying the given functionf to each char of this string and collecting the results.

Source
StringOps.scala

Creates a new non-strict filter which combines this filter with the given predicate.

Creates a new non-strict filter which combines this filter with the given predicate.

Attributes

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

[8]ページ先頭

©2009-2025 Movatter.jp