- Sort Score
- Num 10 results
- Language All
- Labels All
Results 131 - 140 of 5,220 for int (0.09 seconds)
-
Using Clauses
usingParameter: Int): def myInt = summon[Int] val b = GivenIntBox(using...usingParameter: Int): given givenMember: Int = usingParameter...docs.scala-lang.org/scala3/reference/contextual/using-clauses.htmlTue Jan 27 22:53:02 GMT 2026 40.2K bytes -
Concrete Immutable Collection Classes | Collect...
scala> def fibFrom(a: Int, b: Int): Stream[Int] = a #:: fibFrom(b,...a + b) fibFrom: (a: Int,b: Int)Stream[Int] This function is deceptively...docs.scala-lang.org/overviews/collections/concrete-immutable-collection-classes.htmlFri Feb 06 04:30:27 GMT 2026 60K bytes -
型推論 | Scala Documentation
squareOf ( x : Int ) = x * x コンパイラは戻り値の型が Int だと推論できるので、明示的な戻り値の型は必要ありません。...が失敗するプログラムです。 def fac ( n : Int ) = if ( n == 0 ) 1 else n *...docs.scala-lang.org/ja/tour/type-inference.htmlFri Feb 06 04:30:27 GMT 2026 146.9K bytes -
クラス | Scala Documentation
x : Int , var y : Int ) { def move ( dx : Int , dy : Int ) :...ラクタはクラスのシグネチャ (var x: Int, var y: Int) です。 move メソッドは2つの整数の引数を受け取り、情報を持たない...docs.scala-lang.org/ja/tour/classes.htmlFri Feb 06 04:30:27 GMT 2026 154.3K bytes -
Common Sequence Methods | Scala Book | Scala Do...
output: def add ( x : Int , y : Int ) : Int = { val theSum = x +...emptyList = List [ Int ]() val emptyList : List [ Int ] = List () scala...docs.scala-lang.org/overviews/scala-book/collections-methods.htmlFri Feb 06 04:30:27 GMT 2026 95.4K bytes -
单例对象 | Scala 3 — Book | Scala Documentation
AddService { def add ( a : Int , b : Int ) = a + b } trait MultiplyService...MultiplyService { def multiply ( a : Int , b : Int ) = a * b } // implement...docs.scala-lang.org/zh-cn/scala3/book/taste-objects.htmlFri Feb 06 04:30:27 GMT 2026 446.9K bytes -
Implicit Classes | Scala Documentation
Bar(x: Int) // BAD! val x = 5 implicit class x(y: Int) // BAD!...implicit class IntWithTimes(x: Int) { def times[A](f: => A): Unit...docs.scala-lang.org/overviews/core/implicit-classes.htmlFri Feb 06 04:30:27 GMT 2026 28.3K bytes -
The runtimeChecked method
is: ::[Int] => is.head | ^ |the type test for ::[Int] cannot...val res0: Int = 1 As the warning hints, the type ::[Int] can not...docs.scala-lang.org/scala3/reference/other-new-features/runtimeChecked.htmlTue Jan 27 22:53:02 GMT 2026 39.4K bytes -
Inferred Types | Scala 3 — Book | Scala Documen...
variable: Scala 2 and 3 val x : Int = 1 val y : Double = 1 In those...are explicitly declared to be Int and Double , respectively. However,...docs.scala-lang.org/scala3/book/types-inferred.htmlFri Feb 06 04:30:27 GMT 2026 71.4K bytes -
Named Tuples | Scala Documentation
: Expr [ Int ], y : Expr [ Int ]) extends Expr [ Int ] case class...( zipCode : Int , name : String , population : Int ) val city...docs.scala-lang.org/sips/58.htmlFri Feb 06 04:30:27 GMT 2026 129.6K bytes