- Sort Score
- Num 10 results
- Language All
- Labels All
Results 241 - 250 of 5,220 for int (0.12 seconds)
-
The Scala REPL | Scala Book | Scala Documentation
val x = 1 x : Int = 1 scala > val y = x + 1 y : Int = 2 As those...> 2 + 2 res0 : Int = 4 scala > 3 / 3 res1 : Int = 1 These are...docs.scala-lang.org/overviews/scala-book/scala-repl.htmlFri Feb 06 04:30:27 GMT 2026 63.4K bytes -
Iterable トレイト | Collections | Scala Documentation
List[Int] = List(1, 2, 3) scala> git.next() res4: List[Int] = List(4,...List[Int] = List(1, 2, 3) scala> sit.next() res6: List[Int] = List(2,...docs.scala-lang.org/ja/overviews/collections/trait-iterable.htmlFri Feb 06 04:30:27 GMT 2026 97.4K bytes -
控制结构 | Scala 3 — Book | Scala Documentation
3 val ints = List ( 1 , 2 , 3 , 4 , 5 ) for ( i <- ints ) println...) 代码 i <- ints 被称为_生成器_,在括号内的生成器后面是_循环体_。 val ints = List ( 1...docs.scala-lang.org/zh-cn/scala3/book/taste-control-structures.htmlFri Feb 06 04:30:27 GMT 2026 483.7K bytes -
By-Name Context Parameters
Codec[Option[Int]]]( using optionCodec[Int](using intCodec)...T): Unit given intCodec: Codec[Int] = ??? given optionCodec: [T]...docs.scala-lang.org/scala3/reference/contextual/by-name-context-parameters.htmlTue Jan 27 22:53:02 GMT 2026 31.9K bytes -
Equality | Collections | Scala Documentation
ArrayBuffer [ Int ] , Int ] = Map (( ArrayBuffer (...scala.collection.mutable.ArrayBuffer [ Int ] = ArrayBuffer ( 1 , 2 , 3 )...docs.scala-lang.org/overviews/collections-2.13/equality.htmlFri Feb 06 04:30:27 GMT 2026 45.9K bytes -
特质 | Scala Documentation
IntIterator ( to : Int ) extends Iterator [ Int ] { private var...作为上限。它扩展了 Iterator [Int] ,这意味着方法 next 必须返回一个Int。 子类型 凡是需要特质的地方,都可以由该特质的子类型来替换。...docs.scala-lang.org/zh-cn/tour/traits.htmlFri Feb 06 04:30:27 GMT 2026 209.4K bytes -
Multiversal Equality | Scala 3 — Book | Scala D...
year : Int , pages : Int ) extends Book case class...String , year : Int , lengthInMinutes : Int ) extends Book Finally,...docs.scala-lang.org/scala3/book/ca-multiversal-equality.htmlThu Feb 05 16:30:25 GMT 2026 84.7K bytes -
Definition and import details | Quasiquotes | S...
$body" = q"def g(x: Int)(implicit y: Int) = x + y" paramss: .....$implparams) = $rhs" = q"def g(x: Int)(y: Int) = x + y" paramss: List[...docs.scala-lang.org/overviews/quasiquotes/definition-details.htmlFri Feb 06 04:30:27 GMT 2026 60.6K bytes -
与 Java 交互 | Scala 3 — Book | Scala Documentation
: def multiply ( x: Int , y: Int ) : Int // abstract Java 类可以实现这两个接口,并定义...ScalaMultiplyTrait { public int multiply ( int a , int b ) { return a *...docs.scala-lang.org/zh-cn/scala3/book/interacting-with-java.htmlFri Feb 06 04:30:27 GMT 2026 461.7K bytes -
Match Types
case Int => L[X] def g[X]: L[X] = ??? | val x: Int = g[Int] | ^...Elem[String] =:= Char Elem[Array[Int]] =:= Int Elem[List[Float]] =:= Float...docs.scala-lang.org/scala3/reference/new-types/match-types.htmlTue Jan 27 22:53:02 GMT 2026 44K bytes