Interactive help: Difference between revisions

Content added Content deleted
(+Racket)
Line 403: Line 403:
</pre>
</pre>
(Pressing ? at that last prompt would re-display the text just shown.)
(Pressing ? at that last prompt would re-display the text just shown.)

=={{header|Racket}}==

In the command line, <code>raco docs <optional-query></code> will open internet browser and show locally-built Racket docs (main Racket and and any packages locally installed).

In the Racket REPL, <code>help</code> or <code>(help <optional-query>)</code> functions similar to <code>raco docs</code>. Note that if the query is an identifier, <code>help</code> will be able to extract lexical information attached to the identifier, resulting in a precise documentation lookup.

In Racket file, <code>help</code> could be obtained by <code>(require racket/help)</code>


=={{header|REXX}}==
=={{header|REXX}}==