- Sort Score
- Num 10 results
- Language All
- Labels All
Results 251 - 260 of 5,398 for int (0.25 seconds)
-
Functions Are Values | Scala 3 — Book | Scala D...
double ( i : Int ) : Int = i * 2 def underFive ( i : Int ) : Boolean...just like you create String and Int values. This feature has many...docs.scala-lang.org/scala3/book/fp-functions-are-values.htmlFri Feb 06 04:30:27 GMT 2026 81.4K bytes -
How to write asynchronous tests? | The Scala To...
x : Int )( implicit ec : ExecutionContext ) : Future [ Int ] =...square ( x: Int )( using ExecutionContext ) : Future [ Int ] = Future...docs.scala-lang.org/toolkit/testing-asynchronous.htmlFri Feb 06 04:30:27 GMT 2026 64.4K bytes -
Companion Objects | Scala Book | Scala Document...
] = None var age : Option [ Int ] = None override def toString...Option [ String ], age : Option [ Int ]) : Person = { var p = new Person...docs.scala-lang.org/overviews/scala-book/companion-objects.htmlFri Feb 06 04:30:27 GMT 2026 81.6K bytes -
Reflection | Macros in Scala 3 | Scala Document...
( x : Expr [ Int ])( using Quotes ) : Expr [ Int ] = import quotes.reflect....asExprOf[Int] to transform the term back into Expr[Int] . This...docs.scala-lang.org/scala3/guides/macros/reflection.htmlFri Feb 06 04:30:27 GMT 2026 65.1K bytes -
Prelude꞉ A Taste of Scala | Scala Book | Scala ...
like: def sum ( a : Int , b : Int ) : Int = a + b def concatenate...val x = 1 x : Int = 1 scala > val y = x + 1 y : Int = 2 As those...docs.scala-lang.org/overviews/scala-book/prelude-taste-of-scala.htmlFri Feb 06 04:30:27 GMT 2026 106.9K bytes -
struct — Interpret bytes as packed binary data ...
h short int 2 (2) H unsigned short int 2 (2) i int int 4 (2) I...unsigned int int 4 (2) l long int 4 (2) L unsigned long int 4 (2)...docs.python.org/3/library/struct.htmlWed Apr 29 06:55:52 GMT 2026 14.6K bytes -
函数是值 | Scala 3 — Book | Scala Documentation
double ( i : Int ) : Int = i * 2 def underFive ( i : Int ) : Boolean...的第二个重要特性是 您可以将函数创建为值 ,就像您创建 String 和 Int 值一样。 这个特性有很多好处,其中最常见的是(a)您可以...docs.scala-lang.org/zh-cn/scala3/book/fp-functions-are-values.htmlFri Feb 06 04:30:27 GMT 2026 445.9K bytes -
函数式错误处理 | Scala 3 — Book | Scala Documentation
在本例中,如果 x 可以转换为 Int ,则计算第一个 case 子句右侧的表达式;如果 x 不能转换为 Int ,则计算第二个 case...将是以下两种情况之一: 如果 所有 三个字符串都转换为 Int 值, y 将是 Some[Int] ,即包裹在 Some 中的整数 如果三个字符串中...docs.scala-lang.org/zh-cn/scala3/book/fp-functional-error-handling.htmlFri Feb 06 04:30:27 GMT 2026 471.2K bytes -
Experimental Definitions
@experimental type Y = Int @experimental opaque type Z = Int def test: Unit...trait ExpSAM { def foo(x: Int): Int } def bar(f: ExpSAM): Unit...docs.scala-lang.org/scala3/reference/other-new-features/experimental-defs.htmlTue Jan 27 22:53:02 GMT 2026 52.3K bytes -
Linking documentation | Scaladoc | Scala Docume...
with MD syntax: [](meth(Int)) vs [[meth(Int)]] Now that we have a...Markdown: [](meth(Int, Float)) vs [[meth(Int, Float)]] None of...docs.scala-lang.org/scala3/guides/scaladoc/linking.htmlFri Feb 06 04:30:27 GMT 2026 43.7K bytes