- Sort Score
- Num 10 results
- Language All
- Labels All
Results 121 - 130 of 5,220 for int (0.05 seconds)
-
Replace non-sensical @unchecked annotations | S...
opposite: xs match case ints : List [ Int @unchecked ] => Here,...trusts the user that ints is a List[Int] . This could lead to...docs.scala-lang.org/sips/57.htmlFri Feb 06 04:30:27 GMT 2026 52.2K bytes -
单例对象 | Scala 3 — Book | Scala Documentation
AddService { def add ( a : Int , b : Int ) = a + b } trait MultiplyService...MultiplyService { def multiply ( a : Int , b : Int ) = a * b } // implement...docs.scala-lang.org/zh-cn/scala3/book/taste-objects.htmlFri Feb 06 04:30:27 GMT 2026 446.9K bytes -
集合 | Scala 3 — Book | Scala Documentation
3 ) // a: List[Int] = List(1, 2, 3) // Range methods...1 to 5 ). toList // b: List[Int] = List(1, 2, 3, 4, 5) val c...docs.scala-lang.org/zh-cn/scala3/book/taste-collections.htmlFri Feb 06 04:30:27 GMT 2026 446K bytes -
The runtimeChecked method
is: ::[Int] => is.head | ^ |the type test for ::[Int] cannot...val res0: Int = 1 As the warning hints, the type ::[Int] can not...docs.scala-lang.org/scala3/reference/other-new-features/runtimeChecked.htmlTue Jan 27 22:53:02 GMT 2026 39.4K bytes -
Inferred Types | Scala 3 — Book | Scala Documen...
variable: Scala 2 and 3 val x : Int = 1 val y : Double = 1 In those...are explicitly declared to be Int and Double , respectively. However,...docs.scala-lang.org/scala3/book/types-inferred.htmlFri Feb 06 04:30:27 GMT 2026 71.4K bytes -
Monitoring C API — Python 3.14.3 documentation
int lineno ) Fire a LINE event. int PyMonitoring_FireJumpEvent...descriptions of the events. int PyMonitoring_FirePyStartEvent...docs.python.org/3/c-api/monitoring.htmlFri Feb 06 03:23:27 GMT 2026 59.3K bytes -
型推論 | Scala Documentation
squareOf ( x : Int ) = x * x コンパイラは戻り値の型が Int だと推論できるので、明示的な戻り値の型は必要ありません。...が失敗するプログラムです。 def fac ( n : Int ) = if ( n == 0 ) 1 else n *...docs.scala-lang.org/ja/tour/type-inference.htmlFri Feb 06 04:30:27 GMT 2026 146.9K bytes -
Python Initialization Configuration — Pyt...
int PyConfig_GetInt ( const char * name , int * value...running in isolated mode: int main ( int argc , char ** argv ) {...docs.python.org/3/c-api/init_config.htmlSun Feb 22 06:33:52 GMT 2026 32K bytes -
Automatic Eta Expansion - More Details
String) => Int => List[Int] f2: Int => List[Int] Automatic eta-expansion...Boolean, y: String)(z: Int): List[Int] val f1 = m val f2 = m(true,...docs.scala-lang.org/scala3/reference/changed-features/eta-expansion-spec.htmlTue Jan 27 22:53:02 GMT 2026 33.5K bytes -
隐式转换 | Scala Documentation
,以及一个隐式方法 Int => Ordered[Int] 在上下文范围内,那么对下面两个类型为 List[Int] 的列表的操作是合法的:...scala.Predef.intWrapper 已经自动提供了一个隐式方法 Int => Ordered[Int] 。下面提供了一个隐式方法 List[A]...docs.scala-lang.org/zh-cn/tour/implicit-conversions.htmlFri Feb 06 04:30:27 GMT 2026 208.1K bytes