- Sort Score
- Num 10 results
- Language All
- Labels All
Results 241 - 250 of 5,398 for int (0.28 seconds)
-
多态方法 | Scala Documentation
上例中第一次调用方法时,我们显式地提供了类型参数 [Int] 。 因此第一个参数必须是 Int 类型,并且返回类型为 List[Int] 。 上例中第二次...listOfDuplicates [ A ]( x : A , length : Int ) : List [ A ] = { if ( length...docs.scala-lang.org/zh-cn/tour/polymorphic-methods.htmlFri Feb 06 04:30:27 GMT 2026 205.7K bytes -
Context Functions
def f(x: Int): ExecutionContext ?=> Int = ... // could...from above // def f(x: Int): Executable[Int] = ... f(2)(using ec)...docs.scala-lang.org/scala3/reference/contextual/context-functions.htmlTue Jan 27 22:53:02 GMT 2026 41.6K bytes -
types — Dynamic type creation and names for bui...
>>> list [ int ] == GenericAlias ( list , ( int ,)) True >>>...dict [ str , int ] == GenericAlias ( dict , ( str , int )) True Added...docs.python.org/3/library/types.htmlWed Apr 29 06:55:53 GMT 2026 12.4K bytes -
for内包表記 | Scala Documentation
def foo ( n : Int , v : Int ) = for ( i <- 0 until n...を使っていません。 def foo ( n : Int , v : Int ) = for ( i <- 0 until n...docs.scala-lang.org/ja/tour/for-comprehensions.htmlFri Feb 06 04:30:27 GMT 2026 148.9K bytes -
Symbols, Trees, and Types | Reflection | Scala ...
<:w Short Short <:w Int Char <:w Int Int <:w Long Long <:w Float...numeric types Int and Double : scala> typeOf[Int] weak_<:< typeOf[Double]...docs.scala-lang.org/overviews/reflection/symbols-trees-types.htmlFri Feb 06 04:30:27 GMT 2026 93.6K bytes -
Glossary | Scala Documentation
function f has type Int => Int => Int , then f and f(1) are...lists. For instance def f(x: Int)(y: Int) is a curried function with...docs.scala-lang.org/glossary/index.htmlWed Apr 29 03:30:28 GMT 2026 78.2K bytes -
Frame objects — Python 3.14.4 documentation
int PyFrame_Check ( PyObject * obj...NULL . Added in version 3.11. int PyFrame_GetLasti ( PyFrameObject...docs.python.org/3/c-api/frame.htmlWed Apr 29 06:55:52 GMT 2026 7.8K bytes -
Algebraic Data Types
Some[Int] = Some(2) scala> val x: Option.Some[Int] = Option.Some(3)...Option.Some(3) val res4: Option.Some[Int] = Some(3) As all other enums,...docs.scala-lang.org/scala3/reference/enums/adts.htmlTue Jan 27 22:53:02 GMT 2026 40.6K bytes -
Enumerations
enum Color(val rgb: Int): case Red extends Color(0xFF0000)...scala> red.ordinal val res0: Int = 0 The companion object of an...docs.scala-lang.org/scala3/reference/enums/enums.htmlTue Jan 27 22:53:02 GMT 2026 45.8K bytes -
Dropped: Weak Conformance
Int, Double) would be AnyVal , hence...conformance relation. val n: Int = 3 val c: Char = 'X' val d:...docs.scala-lang.org/scala3/reference/dropped-features/weak-conformance.htmlTue Jan 27 22:53:02 GMT 2026 29.8K bytes