- Sort Score
- Num 10 results
- Language All
- Labels All
Results 411 - 420 of 5,223 for int (0.08 seconds)
-
给 Java 工程师的 Scala 入门教学 | Scala Documentation
Date 类为: class Date(y: Int, m: Int, d: Int) extends Ord { def year...String => Int 于是类型 Environment 便可以当做输入 String 回传 Int 函数的类型之代名。...docs.scala-lang.org/zh-cn/tutorials/scala-for-java-programmers.htmlFri Feb 06 04:30:27 GMT 2026 61.7K bytes -
结构化类型 | Scala 3 — Book | Scala Documentation
val name : String val age : Int } Person 类型在其父类型 Record 中添加了一个_精细的改进_,它定义了...selectDynamic ( "age" ). asInstanceOf [ Int ] 第二个例子 为了强化您刚刚看到的内容,这里有另一个名为...docs.scala-lang.org/zh-cn/scala3/book/types-structural.htmlFri Feb 06 04:30:27 GMT 2026 439.7K bytes -
Explicit Nulls
String s; int x; } ==> class C: val s: String? val x: Int We nullify...String NAME = "name"; final int AGE = 0; final char CHAR = 'a';...docs.scala-lang.org/scala3/reference/experimental/explicit-nulls.htmlTue Jan 27 22:53:02 GMT 2026 71.2K bytes -
Programming FAQ — Python 3.14.3 documentation
__class__ <class 'int'> >>> ( 1 ) . __class__ <class 'int'> How do I...use the built-in int() type constructor, e.g. int('144') == 144...docs.python.org/3/faq/programming.htmlFri Feb 06 03:23:28 GMT 2026 253.1K bytes -
高阶函数 | Scala Documentation
40000) val doubleSalary = (x: Int) => x * 2 val newSalaries = ...140000, 80000) 注意在上述示例中 x 没有被显式声明为Int类型,这是因为编译器能够根据map函数期望的类型推断出 x...docs.scala-lang.org/zh-cn/tour/higher-order-functions.htmlFri Feb 06 04:30:27 GMT 2026 215.4K bytes -
Scala Cheatsheet | Scala Documentation
Good def f(x: Int) = { x * x } Bad def f(x: Int) { x * x } 関数定義...map (_ * 2) 中間記法 def sum(args: Int*) = args.reduceLeft(_+_) 可変長引数...docs.scala-lang.org/ja/cheatsheets/index.htmlFri Feb 06 04:30:27 GMT 2026 49.4K bytes -
for Loops | Scala Book | Scala Documentation
3 ) nums : Seq [ Int ] = List ( 1 , 2 , 3 ) scala...which has the data type Seq[Int] . Here’s a list of strings which...docs.scala-lang.org/overviews/scala-book/for-loops.htmlFri Feb 06 04:30:27 GMT 2026 66.6K bytes -
Type Class Derivation
object Eq: given Eq[Int]: def eqv(x: Int, y: Int) = x == y def check(x:...class case class Point(x: Int, y: Int) derives Ordering generates...docs.scala-lang.org/scala3/reference/contextual/derivation.htmlTue Jan 27 22:53:02 GMT 2026 79.3K bytes -
Pending removal in Python 3.15 — Python 3.14.3 ...
docs.python.org/3/deprecations/pending-removal-in-3.15.htmlFri Feb 06 03:23:28 GMT 2026 25.5K bytes -
Scaladoc | Style Guide | Scala Documentation
for converting to and from `Int`. * * ==Overview== * The main...class Person(name: String, age: Int) { } Depending on the complexity...docs.scala-lang.org/style/scaladoc.htmlFri Feb 06 04:30:27 GMT 2026 36.4K bytes