- Sort Score
- Num 10 results
- Language All
- Labels All
Results 91 - 100 of 5,398 for int (0.32 seconds)
-
Concrete Immutable Collection Classes | Collect...
fibFrom ( a : Int , b : Int ) : LazyList [ Int ] = a #:: fibFrom...fibFrom : ( a: Int , b: Int ) LazyList [ Int ] This function...docs.scala-lang.org/overviews/collections-2.13/concrete-immutable-collection-classes.htmlFri Feb 06 04:30:27 GMT 2026 89K bytes -
类 | Scala Documentation
x : Int , var y : Int ) { def move ( dx : Int , dy : Int ) :...。与许多其他语言不同,主构造方法在类的签名中 (var x: Int, var y: Int) 。 move 方法带有2个参数,返回无任何意义的...docs.scala-lang.org/zh-cn/tour/classes.htmlFri Feb 06 04:30:27 GMT 2026 215.1K bytes -
Reflection
inline def natConst(inline x: Int): Int = ${natConstImpl('{x})} def...natConstImpl(x: Expr[Int])(using Quotes): Expr[Int] = import quotes.reflect.*...docs.scala-lang.org/scala3/reference/metaprogramming/reflection.htmlTue Jan 27 22:53:02 GMT 2026 57.4K bytes -
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