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.math/Numeric/Implicits

Implicits

scala.math.Numeric.Implicits

Attributes

Source
Numeric.scala
Graph
Supertypes
classObject
traitMatchable
classAny
Self type

Members list

Implicits

Inherited implicits

implicitdefinfixNumericOps[T](x:T)(implicitnum:Numeric[T]):Numeric[T]#NumericOps

These implicits create conversions from a value for which an implicit Numeric exists to the inner class which creates infix operations.

These implicits create conversions from a value for which an implicit Numeric exists to the inner class which creates infix operations. Once imported, you can write methods as follows:

def plus[T: Numeric](x: T, y: T) = x + y

Attributes

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

[8]ページ先頭

©2009-2025 Movatter.jp