- Sort Score
- Num 10 results
- Language All
- Labels All
Results 251 - 260 of 5,398 for int (0.55 seconds)
-
Implementing Type classes
(x: Int) def combine (y: Int): Int = x + y def unit: Int = 0...type Int one could write the following: given Monoid[Int]: extension...docs.scala-lang.org/scala3/reference/contextual/type-classes.htmlTue Jan 27 22:53:02 GMT 2026 49.7K 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 -
Definition and import details | Quasiquotes | S...
$body" = q"def g(x: Int)(implicit y: Int) = x + y" paramss: .....$implparams) = $rhs" = q"def g(x: Int)(y: Int) = x + y" paramss: List[...docs.scala-lang.org/overviews/quasiquotes/definition-details.htmlFri Feb 06 04:30:27 GMT 2026 60.6K 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 -
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 -
函数式错误处理 | 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 -
TypeTest
type Int object PeanoInt extends Peano: type Nat = Int type Zero...Zero = Int type Succ = Int def safeDiv(m: Nat, n: Succ): (Nat,...docs.scala-lang.org/scala3/reference/other-new-features/type-test.htmlTue Jan 27 22:53:02 GMT 2026 41.7K bytes -
A Scala Tutorial for Java Programmers | Scala D...
3 class Date ( y : Int , m : Int , d : Int ) extends Ord { def...} class Date ( y : Int , m : Int , d : Int ) extends Ord : def...docs.scala-lang.org/tutorials/scala-for-java-programmers.htmlWed Apr 29 03:30:28 GMT 2026 151.6K bytes -
ast — Abstract syntax trees — Python 3.14...
attributes ( int lineno , int col_offset , int ? end_lineno , int ? end_col_offset...attributes ( int lineno , int col_offset , int ? end_lineno , int ? end_col_offset...docs.python.org/3/library/ast.htmlTue Apr 28 13:41:04 GMT 2026 35.9K bytes