Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Janet Introduction: Replace (all-bindings) with (doc) for REPL #248

Merged
merged 3 commits into from
Jan 25, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions content/docs/index.mdz
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,11 @@ If at any time you want to see short documentation on a binding, use the

@codeblock[janet](```(doc defn) # -> Prints the documentation for "defn"```)

To see a list of all global functions in the REPL, type the command
To see a list of all global bindings in the REPL, use the @code[doc] macro
without arguments to print them out.

@codeblock[janet](```(all-bindings)```)
@codeblock[janet](```(doc)```)

Which will print out every global binding in the Janet REPL. You can also browse
the @link[/doc.html][core library API] on the website.
Note: see the @code[all-bindings] function for related functionality.

You can also browse the @link[/doc.html][core library API] on the website.
Loading