作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在使用带有 Core.Std 模块的 ocaml utop。
要查看模块的帮助,我必须遵循别名链接,如下所示:
utop # #show_module Array;;
module Array = Core_kernel.Std_kernel.Array
utop # #show_module Core_kernel.Std_kernel.Array;;
module Array = Core_kernel.Std_internal.Array
utop # #show_module Core_kernel.Std_internal.Array;;
module Array = Core_kernel.Core_array
最佳答案
为了完整起见,丹尼尔在评论中提到的拉取请求已被合并,现在 utop
#show_module
更聪明.
utop # #show_module Array;;
module Array = Base__.Array
module Array = Base.Array
module Array :
sig
type 'a t = 'a array
val compare : ('a -> 'a -> int) -> 'a t -> 'a t -> int
val t_of_sexp : (Sexp.t -> 'a) -> Sexp.t -> 'a t
val sexp_of_t : ('a -> Sexp.t) -> 'a t -> Sexp.t
[...]
end
关于ocaml - ocaml utop 中的 show_module 乏味,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36118521/
我正在使用带有 Core.Std 模块的 ocaml utop。 要查看模块的帮助,我必须遵循别名链接,如下所示: utop # #show_module Array;; module Array =
我是一名优秀的程序员,十分优秀!