在 Scala 文档中搜索 #:: [英] Searching the Scala documentation for #::

查看:19
本文介绍了在 Scala 文档中搜索 #::的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试查找 Scala 运算符方法 #:: 的文档.我相信它是在 Stream 类中定义的,因为 example 我发现使用它.

I am trying to find the documentation for the Scala operator method #::. I believe that it is defined in the Stream class because of an example I found that uses it.

我的问题不是针对这种方法(尽管我想知道文档在哪里),而是一般如何搜索 Scala 文档.我尝试在文档页面 (2.8.1) 左上角的搜索框中输入 #:: ,但什么也没找到.

My question is not particular to this method (although I would like to know where the docs are), but how to search the Scala docs in general. I tried entering #:: in the search box in the upper left of the documentation page (2.8.1), but found nothing.

推荐答案

我建议使用 参考索引 - 它专门设计用于查找任何类型的符号(类、特征、方法、vals、vars),而不管它是分层的位置 - 与不显示内部类、特征或对象的 Scaladoc 的左索引形成对比.

I suggest using the Reference Index - it's designed specifically to look for any kind of symbol (class, traits, methods, vals, vars) regardless of it's hierarchical position - contrasting with the Scaladoc's left index which doesn't show inner classes, traits or objects.

不幸的是,它只在夜间可用.你可以在 nightly 看到整个事情Scaladoc.请注意左框架中位于索引上方的上方框.

Unfortunately it's only available in the nightly. You can see the whole thing at nightly Scaladoc. Notice the upper box in the left frame, above the index.

希望它将与 Scala 2.9.0 捆绑在一起.

Hope it will be bundled with Scala 2.9.0.

编辑 从 2.9.0 开始,参考索引开始与 Scaladoc.现在无需查看夜间文档.

Edit As of 2.9.0, the reference index started to be bundle with Scaladoc. No need to go to the nightly docs now.

这篇关于在 Scala 文档中搜索 #::的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆