JanetDocsPlaygroundI'm feeling luckyGitHub sign in

doc-of



    function
    boot.janet on line 3337, column 1

    (doc-of x)

    Searches all loaded modules in module/cache for a given binding and 
    prints out its documentation. This does a search by value instead 
    of by name. Returns nil.


1 exampleSign in to add an example
Loading...
(doc-of file/read) # => file/read docs are shown

(def tmpfile (file/temp))

(doc-of (tmpfile :read)) # => also shows the file/read docs. 
# Note that we didn't have to use the file/read symbol here to get docs.
yumaikasPlayground