- Sort Score
- Num 10 results
- Language All
- Labels All
Results 241 - 250 of 5,223 for int (0.07 seconds)
-
特质 | 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 -
与 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 -
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 -
Equality | Collections (Scala 2.8 - 2.12) | Sca...
ArrayBuffer[Int],Int] = Map((ArrayBuffer(1, 2,...scala.collection.mutable.ArrayBuffer[Int] = ArrayBuffer(1, 2, 3) scala>...docs.scala-lang.org/overviews/collections/equality.htmlFri Feb 06 04:30:27 GMT 2026 42.9K bytes -
tracemalloc — Trace memory allocations — Python...
module as a tuple: (current: int, peak: int) . tracemalloc. reset_peak...lineno : int = None , all_frames : bool = False , domain : int = None...docs.python.org/3/library/tracemalloc.htmlFri Feb 06 03:23:27 GMT 2026 125.5K 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 -
Binary Compatibility for library authors | Scal...
age : Int ) { // Create withXxx methods...= name ) def withAge ( age : Int ) : Person = copy ( age = age...docs.scala-lang.org/overviews/core/binary-compatibility-for-library-authors.htmlFri Feb 06 04:30:27 GMT 2026 68.9K 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 -
控制结构 | 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 -
튜플 | Scala Documentation
Int] 의 약칭인 (String, Int) 이다. 튜플들을 나타내기 위해서..."Sugar" , 25 ) 위 코드는 String 과 Int 엘리먼트를 포함하는 튜플을 생성한다. ingredient...docs.scala-lang.org/ko/tour/tuples.htmlFri Feb 06 04:30:27 GMT 2026 78.6K bytes