- Sort Score
- Num 10 results
- Language All
- Labels All
Results 151 - 160 of 5,398 for int (0.06 seconds)
-
Implicit Classes | Scala Documentation
Bar(x: Int) // 错误! val x = 5 implicit class x(y: Int) // 错误!...implicit class IntWithTimes(x: Int) { def times[A](f: => A): Unit...docs.scala-lang.org/zh-cn/overviews/core/implicit-classes.htmlFri Feb 06 04:30:27 GMT 2026 26.9K bytes -
Trait Iterable | Collections (Scala 2.8 - 2.12)...
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/overviews/collections/trait-iterable.htmlFri Feb 06 04:30:27 GMT 2026 49.2K bytes -
The ArrayBuffer Class | Scala Book | Scala Docu...
ways: val ints = ArrayBuffer [ Int ]() ints += 1 ints += 2 The...ArrayBuffer like this: val ints = ArrayBuffer [ Int ]() val names = ArrayBuffer...docs.scala-lang.org/overviews/scala-book/arraybuffer-examples.htmlFri Feb 06 04:30:27 GMT 2026 73.2K bytes -
类型推断 | Scala 3 — Book | Scala Documentation
val x : Int = 1 val y : Double = 1 在这些示例中,类型分别_明确地_声明为 Int 和 Double...3 scala > val a = 1 val a : Int = 1 scala > val b = List ( 1...docs.scala-lang.org/zh-cn/scala3/book/types-inferred.htmlFri Feb 06 04:30:27 GMT 2026 436.1K bytes -
Interacting with Java | Scala 3 — Book | Scala ...
def multiply ( x : Int , y : Int ) : Int // abstract } trait...: def multiply ( x: Int , y: Int ) : Int // abstract A Java class...docs.scala-lang.org/scala3/book/interacting-with-java.htmlFri Feb 06 04:30:27 GMT 2026 118.6K bytes -
Reflection | Macros in Scala 3 | Scala Document...
( x : Expr [ Int ])( using Quotes ) : Expr [ Int ] = import quotes.reflect....asExprOf[Int] to transform the term back into Expr[Int] . This...docs.scala-lang.org/scala3/guides/macros/reflection.htmlFri Feb 06 04:30:27 GMT 2026 65.1K bytes -
Functions Are Values | Scala 3 — Book | Scala D...
double ( i : Int ) : Int = i * 2 def underFive ( i : Int ) : Boolean...just like you create String and Int values. This feature has many...docs.scala-lang.org/scala3/book/fp-functions-are-values.htmlFri Feb 06 04:30:27 GMT 2026 81.4K bytes -
Previous Given Syntax
intOrd: Ord[Int] with def compare(x: Int, y: Int) = if x < y...IntOrd extends Ord[Int]: def compare(x: Int, y: Int) = if x < y then...docs.scala-lang.org/scala3/reference/contextual/previous-givens.htmlTue Jan 27 22:53:02 GMT 2026 44.7K bytes -
Generalized Method Syntax
U)(z: Int, s: String)(a: Array[T])(implicit ordInt: Ord[Int], l:...Some[Int] , only the above allows: getOrElse(k)[Option[Int]](None)...docs.scala-lang.org/scala3/reference/other-new-features/generalized-method-syntax.htmlTue Jan 27 22:53:02 GMT 2026 35.6K bytes -
Exception Handling — Python 3.14.4 docume...
int lineno , int col_offset , int end_lineno , int end_col_offset...PyObject * filename , int lineno , int col_offset ) Set file,...docs.python.org/3/c-api/exceptions.htmlWed Apr 29 06:55:52 GMT 2026 25.3K bytes