- Sort Score
- Num 10 results
- Language All
- Labels All
Results 81 - 90 of 4,323 for int (0.28 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
dataclasses — Data Classes — Python 3.14....
z : int = 10 , * , y : int = 0 , w : int = 1 , t : int = 0 ):...C : x : int y : int = field ( repr = False ) z : int = field...docs.python.org/3/library/dataclasses.htmlWed Apr 29 06:55:53 GMT 2026 18.6K bytes -
类型推断 | Scala Documentation
squareOf ( x : Int ) = x * x 编译器可以推断出方法的返回类型为 Int ,因此不需要明确地声明返回类型。...中,编译器知道 A 是 Int 类型 (即 x 是一个整数)。 因此,编译器可以从 x * 2 推断出 B 是 Int 类型。 何时...docs.scala-lang.org/zh-cn/tour/type-inference.htmlFri Feb 06 04:30:27 GMT 2026 208.6K bytes -
Erased Definitions
CanSerialize[Int => Int] = fakeEvidence writeList(out, List[Int => Int](x...// ok writeList(out, List[Int => Int](x => x + 1, y => y * 2))...docs.scala-lang.org/scala3/reference/experimental/erased-defs.htmlTue Jan 27 22:53:02 GMT 2026 52.4K bytes -
自定义 map 函数 | Scala 3 — Book | Scala Documentation
只关注 List[Int] ,你说: 我想编写一个 map 方法,该方法可用于将函数应用于给定的 List[Int] 中的每个元素,并将转换后的元素作为新列表返回。...A ]( f : ( Int ) => A ) 接下来,您知道 map 也应该接受 List[Int] : Scala 2...docs.scala-lang.org/zh-cn/scala3/book/fun-write-map-function.htmlFri Feb 06 04:30:27 GMT 2026 448.9K bytes -
unified-types-diagram.svg
Float->AnyVal Long Long Long->AnyVal Int Int Int->AnyVal Short Short Short->AnyVal...Nothing->Float Nothing->Long Nothing->Int Nothing->Short Nothing->Byte...docs.scala-lang.org/resources/images/tour/unified-types-diagram.svgFri Feb 24 17:11:59 GMT 2023 14.9K bytes -
Conversion Between Option and the Collections |...
) } yield ( a + b ) // : Set[Int] = Set(42) for a <- Set ( 1 )...41 ) yield ( a + b ) // : Set[Int] = Set(42) since the operation...docs.scala-lang.org/overviews/collections-2.13/conversion-between-option-and-the-collections.htmlFri Feb 06 04:30:27 GMT 2026 49.9K bytes -
Binary APIs | Scala Documentation
protectedAPI : Int = ... @publicInBinary def publicAPI : Int = ... //...C (); public int packagePrivateAPI (); public int protectedAPI...docs.scala-lang.org/sips/52.htmlFri Feb 06 04:30:27 GMT 2026 45.8K bytes -
An Overview of TASTy | Scala Documentation
think of being like this: int x = (Int) xs.get(0) // Java-ish val...on the JVM: val xs : List [ Int ] = List ( 1 , 2 , 3 ) that code...docs.scala-lang.org/scala3/guides/tasty-overview.htmlFri Feb 06 04:30:27 GMT 2026 36.8K bytes -
Functional Error Handling in Scala | Scala Book...
Option[Int] : def toInt ( s : String ) : Option [ Int ] = { try...toInt ( s : String ) : Try [ Int ] = Try { Integer . parseInt...docs.scala-lang.org/overviews/scala-book/functional-error-handling.htmlFri Feb 06 04:30:27 GMT 2026 70.6K bytes -
Unicode Objects and Codecs — Python 3.14....
read-only data of Unicode objects: int PyUnicode_Check ( PyObject *...This function always succeeds. int PyUnicode_CheckExact ( PyObject...docs.python.org/3/c-api/unicode.htmlWed Apr 29 06:55:52 GMT 2026 29.6K bytes