JanetDocsSourcePlaygroundI'm feeling luckyCommunityGitHub sign in
# *doc-width* is bound to the keyword :doc-width - it can be used in place of # :doc-width in a call to `dyn`, `setdyn`, or `with-dyns` and is preferable # to using the keyword directly. When set to a number, it indicates the # maximum width (in columns) of a row of text returned by `doc-format`. # - Like *doc-color*, *doc-width* can be used to adjust the output of # `doc-format`. # - When the :doc-width dynamic binding is not set, the default width is 80. # - By default, `doc-format` adds 4 space indentation and subtracts 8 from # the value of the :doc-width dynamic binding to calculate a max width. # Default: # repl> (doc doc) # # # macro # boot.janet on line 3573, column 1 # # (doc &opt sym) # # Shows documentation for the given symbol, or can show a list of # available bindings. If sym is a symbol, will look for documentation # for that symbol. If sym is a string or is not provided, will show # all lexical and dynamic bindings in the current environment # containing that string (all bindings will be shown if no string is # given). # With *doc-width*: # repl> (with-dyns [*doc-width* 40] (doc doc)) # # # macro # boot.janet on line 3573, column 1 # # (doc &opt sym) # # Shows documentation for the # given symbol, or can show a # list of available bindings. # If sym is a symbol, will # look for documentation for # that symbol. If sym is a # string or is not provided, # will show all lexical and # dynamic bindings in the # current environment # containing that string (all # bindings will be shown if # no string is given).