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/scala.collection.mutable/TreeSet

TreeSet

scala.collection.mutable.TreeSet
See theTreeSet companion class

This object provides a set of operations to createIterable values.

Attributes

Companion
class
Source
TreeSet.scala
Graph
Supertypes
Self type
TreeSet.type

Members list

Value members

Concrete methods

Attributes

Source
TreeSet.scala
deffrom[E](it:IterableOnce[E])(implicitordering:Ordering[E]):TreeSet[E]

Attributes

Source
TreeSet.scala
defnewBuilder[A](implicitordering:Ordering[A]):Builder[A,TreeSet[A]]

Attributes

Source
TreeSet.scala

Inherited methods

defapply[A :Ordering](xs:A*):TreeSet[A]

Attributes

Inherited from:
EvidenceIterableFactory
Source
Factory.scala
deffill[A :Ordering](n:Int)(elem:=>A):TreeSet[A]

Produces a collection containing the results of some element computation a number of times.

Produces a collection containing the results of some element computation a number of times.

Value parameters

elem

the element computation

n

the number of elements contained in the collection.

Attributes

Returns

A collection that contains the results ofn evaluations ofelem.

Inherited from:
EvidenceIterableFactory
Source
Factory.scala
defiterate[A :Ordering](start:A,len:Int)(f:A=>A):TreeSet[A]

Produces a collection containing repeated applications of a function to a start value.

Produces a collection containing repeated applications of a function to a start value.

Value parameters

f

the function that's repeatedly applied

len

the number of elements contained in the collection

start

the start value of the collection

Attributes

Returns

a collection withlen values in the sequencestart, f(start), f(f(start)), ...

Inherited from:
EvidenceIterableFactory
Source
Factory.scala
deftabulate[A :Ordering](n:Int)(f:Int=>A):TreeSet[A]

Produces a collection containing values of a given function over a range of integer values starting from 0.

Produces a collection containing values of a given function over a range of integer values starting from 0.

Value parameters

f

The function computing element values

n

The number of elements in the collection

Attributes

Returns

A collection consisting of elementsf(0), ..., f(n -1)

Inherited from:
EvidenceIterableFactory
Source
Factory.scala
defunfold[A :Ordering,S](init:S)(f:S=>Option[(A,S)]):TreeSet[A]

Produces a collection that uses a functionf to produce elements of typeA and update an internal state of typeS.

Produces a collection that uses a functionf to produce elements of typeA and update an internal state of typeS.

Type parameters

A

Type of the elements

S

Type of the internal state

Value parameters

f

Computes the next element (or returnsNone to signal the end of the collection)

init

State initial value

Attributes

Returns

a collection that produces elements usingf untilf returnsNone

Inherited from:
EvidenceIterableFactory
Source
Factory.scala

Implicits

Inherited implicits

Attributes

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

[8]ページ先頭

©2009-2025 Movatter.jp