- Sort Score
- Num 10 results
- Language All
- Labels All
Results 281 - 290 of 5,220 for int (0.07 seconds)
-
Scala for Python Developers | Scala 3 — Book | ...
return a + b def add(a: Int, b: Int): Int = a + b Multiline method:...< b else b def min(a: Int, b: Int): Int = if a < b then a else...docs.scala-lang.org/scala3/book/scala-for-python-devs.htmlFri Feb 06 04:30:27 GMT 2026 125K bytes -
等价性 | Collections | Scala Documentation
ArrayBuffer[Int],Int] = Map((ArrayBuffer(1, 2,...scala.collection.mutable.ArrayBuffer[Int] = ArrayBuffer(1, 2, 3) scala>...docs.scala-lang.org/zh-cn/overviews/collections/equality.htmlFri Feb 06 04:30:27 GMT 2026 123.6K bytes -
For 表达式 | Scala Documentation
v 的数字的组合: def foo ( n : Int , v : Int ) = for ( i <- 0 until n... yield : def foo ( n : Int , v : Int ) = for ( i <- 0 until n...docs.scala-lang.org/zh-cn/tour/for-comprehensions.htmlFri Feb 06 04:30:27 GMT 2026 212K bytes -
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 -
Hygiene | Quasiquotes | Scala Documentation
$x"); x } def apply(x: Int): Int = macro impl def impl(c: Context)(x:...object MyMacro { def wrapper(x: Int) = { println(s"wrapped x = $x");...docs.scala-lang.org/overviews/quasiquotes/hygiene.htmlFri Feb 06 04:30:27 GMT 2026 46.9K bytes -
Right-Associative Extension Methods: Details
(x: Int) def *:[T](xs: List[T]): List[T] = ... xs.*:[Int](1)...(a: Int) def :+(b: Long): Long = ... // extension on Int def...docs.scala-lang.org/scala3/reference/contextual/right-associative-extension-methods.htmlTue Jan 27 22:53:02 GMT 2026 35.3K bytes -
Number Protocol — Python 3.14.3 documentation
of int . PyObject * PyNumber_ToBase ( PyObject * n , int base...Light Dark | Number Protocol int PyNumber_Check ( PyObject * o...docs.python.org/3/c-api/number.htmlFri Feb 06 03:23:27 GMT 2026 77.4K bytes -
等価性 | Collections | Scala Documentation
ArrayBuffer[Int],Int] = Map((ArrayBuffer(1, 2,...scala.collection.mutable.ArrayBuffer[Int] = ArrayBuffer(1, 2, 3) scala>...docs.scala-lang.org/ja/overviews/collections/equality.htmlFri Feb 06 04:30:27 GMT 2026 90.4K bytes -
Common Map Methods | Scala Book | Scala Documen...
keys keys : Iterable [ Int ] = Set ( 1 , 2 , 3 , 4 ) //...scala.collection.immutable.Map [ Int , String ] = Map ( 1 -> A , 2...docs.scala-lang.org/overviews/scala-book/collections-maps.htmlFri Feb 06 04:30:27 GMT 2026 68.4K 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