Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/scala/16.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
查找Scala阵列深层文档?_Scala_Documentation - Fatal编程技术网

查找Scala阵列深层文档?

查找Scala阵列深层文档?,scala,documentation,Scala,Documentation,包括使用deep: println(k.deep) 工程如下所述: scala> println(Array(10, 20, 30, 40).deep) Array(10, 20, 30, 40) 我正在查找有关deep的数组的文档。我转到并在页面中搜索deep,但没有找到匹配项 这是怎么一个不正确的序列呢?似乎是根据以下内容从Scala 2.13中删除的: 在(嵌套的)数组中打印值是一个非常难看的测试工具。 如果您对它有强烈的感觉,我们可以添加它弃用 您仍然可以在和中找到它: 除了

包括使用
deep

println(k.deep)
工程如下所述:

scala> println(Array(10, 20, 30, 40).deep)
Array(10, 20, 30, 40)
我正在查找有关
deep
数组的文档。我转到并在页面中搜索
deep
,但没有找到匹配项


这是怎么一个不正确的序列呢?

似乎是根据以下内容从Scala 2.13中删除的:

在(嵌套的)数组中打印值是一个非常难看的测试工具。 如果您对它有强烈的感觉,我们可以添加它弃用

您仍然可以在和中找到它:


除了通过所有旧版本的发行说明进行跟踪,直到发现信息为止,还有没有更直接的方法来查找更改?例如,尝试搜索主回购协议
  /** Creates a possible nested `IndexedSeq` which consists of all the elements
   *  of this array. If the elements are arrays themselves, the `deep` transformation
   *  is applied recursively to them. The `stringPrefix` of the `IndexedSeq` is
   *  "Array", hence the `IndexedSeq` prints like an array with all its
   *  elements shown, and the same recursively for any subarrays.
   *
   *  Example:
   *  {{{
   *  Array(Array(1, 2), Array(3, 4)).deep.toString
   *  }}}
   *  prints: `Array(Array(1, 2), Array(3, 4))`
   *
   *  @return    An possibly nested indexed sequence of consisting of all the elements of the array.
   */
  def deep: scala.collection.IndexedSeq[Any]