- Sort Score
- Num 10 results
- Language All
- Labels All
Results 181 - 190 of 5,398 for int (0.07 seconds)
-
隐式参数 | Scala Documentation
Monoid [ Int ] = new Monoid [ Int ] { def add ( x : Int , y : Int...Int ) : Int = x + y def unit : Int = 0 } def sum [ A ]( xs :...docs.scala-lang.org/zh-cn/tour/implicit-parameters.htmlFri Feb 06 04:30:27 GMT 2026 212.5K bytes -
Opaque Type Aliases
Permissions = Int opaque type PermissionChoice = Int opaque type...Logarithm l * 2 // error: found: Int(2), required: Logarithm l / l2...docs.scala-lang.org/scala3/reference/other-new-features/opaques.htmlTue Jan 27 22:53:02 GMT 2026 43.5K bytes -
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 -
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 -
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 -
튜플 | 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 -
特质 | 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 -
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 -
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