- Sort Score
- Num 10 results
- Language All
- Labels All
Results 161 - 170 of 5,220 for int (0.06 seconds)
-
An OOP Example | Scala Book | Scala Documentation
Int ], crustSizePrices : Map [ CrustSize , Int ], crustTypePrices...crustTypePrices : Map [ CrustType , Int ] ) : Int = ??? Note that this is...docs.scala-lang.org/overviews/scala-book/oop-pizza-example.htmlFri Feb 06 04:30:27 GMT 2026 74.3K bytes -
Improve Syntax for Context Bounds and Givens | ...
typeclass given Ord[Int]: def compare(x: Int, y: Int) = … // Parameterized...given intOrd: Ord[Int]: def compare(x: Int, y: Int) = ... // Parameterized...docs.scala-lang.org/sips/64.htmlFri Feb 06 04:30:27 GMT 2026 101.4K bytes -
Implicit Conversions | Scala 3 — Book | Scala D...
conversion from Int to Long : given int2long : Conversion [ Int , Long...Conversion [ Int , Long ] with def apply ( x : Int ) : Long = x...docs.scala-lang.org/scala3/book/ca-implicit-conversions.htmlFri Feb 06 04:30:27 GMT 2026 87.7K bytes -
Tuples | Scala Book | Scala Documentation
this: class SomeThings ( i : Int , s : String , p : Person ) you..."Maggie" , 30 ) d : ( String , Int ) = ( Maggie , 30 ) Notice that...docs.scala-lang.org/overviews/scala-book/tuples.htmlFri Feb 06 04:30:27 GMT 2026 67.1K bytes -
アノテーション | Scala Documentation
x : Int ) : Int = { @tailrec def factorialHelper ( x : Int , accumulator...factorial(x: Int): Int = { @tailrec def factorialHelper(x: Int): Int...docs.scala-lang.org/ja/tour/annotations.htmlFri Feb 06 04:30:27 GMT 2026 149.1K bytes -
Polymorphic Methods | Tour of Scala | Scala Doc...
writing [Int] . Therefore the first argument must be an Int and the...listOfDuplicates [ A ]( x : A , length : Int ) : List [ A ] = { if ( length...docs.scala-lang.org/tour/polymorphic-methods.htmlFri Feb 06 04:30:27 GMT 2026 36.8K bytes -
The Matchable Trait
imm: IArray[Int] = ... imm match case a: Array[Int] => a(0) =...casting: imm.asInstanceOf[Array[Int]](0) = 1 But that is not as much...docs.scala-lang.org/scala3/reference/other-new-features/matchable.htmlTue Jan 27 22:53:02 GMT 2026 38.6K bytes -
Scala 3 Macros | Macros in Scala 3 | Scala Docu...
def sumNow ( inline nums : Int* ) : Int = $ { sumCode ( 'nums )...Expr [ Seq [ Int ]])( using Quotes ) : Expr [ Int ] = import ...docs.scala-lang.org/scala3/guides/macros/macros.htmlFri Feb 06 04:30:27 GMT 2026 77.3K bytes -
ポリモーフィックメソッド | Scala Documentation
最初の呼び出し例では、 [Int] と書いて明示的に型引数を渡しています。そのため最初の引数は Int でなければならず、戻される型は...listOfDuplicates [ A ]( x : A , length : Int ) : List [ A ] = { if ( length...docs.scala-lang.org/ja/tour/polymorphic-methods.htmlFri Feb 06 04:30:27 GMT 2026 143.9K bytes -
Variables and Data Types | Scala 3 — Book | Sca...
type: Scala 2 and 3 val x : Int = 1 // explicit val x = 1 //...3 scala > val x = 1 val x : Int = 1 scala > val s = "a string"...docs.scala-lang.org/scala3/book/taste-vars-data-types.htmlThu Feb 05 16:30:25 GMT 2026 89.6K bytes