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.immutable/NumericRange

NumericRange

scala.collection.immutable.NumericRange
See theNumericRange companion class

A companion object for numeric ranges.

Attributes

Companion
class
Source
NumericRange.scala
Graph
Supertypes
classObject
traitMatchable
classAny
Self type

Members list

Type members

Classlikes

classExclusive[T](start:T,end:T,step:T)(implicitnum:Integral[T]) extendsNumericRange[T]

Attributes

Source
NumericRange.scala
Supertypes
classInclusive[T](start:T,end:T,step:T)(implicitnum:Integral[T]) extendsNumericRange[T]

Attributes

Source
NumericRange.scala
Supertypes

Value members

Concrete methods

defapply[T](start:T,end:T,step:T)(implicitnum:Integral[T]):Exclusive[T]

Attributes

Source
NumericRange.scala
defcount[T](start:T,end:T,step:T,isInclusive:Boolean)(implicitnum:Integral[T]):Int

Calculates the number of elements in a range given start, end, step, and whether or not it is inclusive.

Calculates the number of elements in a range given start, end, step, and whether or not it is inclusive. Throws an exception if step == 0 or the number of elements exceeds the maximum Int.

Attributes

Source
NumericRange.scala
definclusive[T](start:T,end:T,step:T)(implicitnum:Integral[T]):Inclusive[T]

Attributes

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

[8]ページ先頭

©2009-2025 Movatter.jp