scala / 3.1.1 / scala / collection / mutable / sortedset$.html /

Object scala.collection.mutable.SortedSet

@SerialVersionUID(3L)
object SortedSet extends Delegate[ SortedSet]

This object provides a set of operations to create mutable.Sortedset values.

Supertypes
Self type

Inherited methods

Source
override def apply[A : Ordering](xs: A*): SortedSet[A]

Definition Classes Delegate -> EvidenceIterableFactory
Inherited from Delegate

Source
def empty[A : Ordering]: SortedSet[A]

Inherited from Delegate

Source
def fill[A : Ordering](n: Int)(elem: => A): SortedSet[A]

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.

Returns

A collection that contains the results of n evaluations of elem.

Inherited from EvidenceIterableFactory

Source
def from[E : Ordering](it: IterableOnce[E]): SortedSet[E]

Inherited from Delegate

Source
def iterate[A : Ordering](start: A, len: Int)(f: A => A): SortedSet[A]

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

Returns

a collection with len values in the sequence start, f(start), f(f(start)), ...

Inherited from EvidenceIterableFactory

Source

Inherited from Delegate

Source
def tabulate[A : Ordering](n: Int)(f: Int => A): SortedSet[A]

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

Returns

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

Inherited from EvidenceIterableFactory

Source
def unfold[A : Ordering, S](init: S)(f: S => Option[(A, S)]): SortedSet[A]

Produces a collection that uses a function f to produce elements of type A and update an internal state of type S.

Type parameters
A

Type of the elements

S

Type of the internal state

Value parameters
f

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

init

State initial value

Returns

a collection that produces elements using f until f returns None

Inherited from EvidenceIterableFactory

Inherited implicits

Source

Inherited from EvidenceIterableFactory

© 2002-2022 EPFL, with contributions from Lightbend.
Licensed under the Apache License, Version 2.0.
https://scala-lang.org/api/3.1.1/scala/collection/mutable/SortedSet$.html