]help •nc•nc — Name class
•nc names gives the class of each name: ¯1 invalid, 0 undefined, 2 value, 3 function, 4 operator. A character vector names one binding. Introspection has examples.
•nc — Name class•nc names gives the class of each name: ¯1 invalid, 0 undefined, 2 value, 3 function, 4 operator. A character vector names one binding. Introspection has examples.
•nl — Name listprefix •nl classes lists the visible user names in classes that begin with prefix, as a sorted vector of strings. •nl classes lists them all. Introspection has examples.
Errors: DOMAIN for unsupported classes; RANK for a class matrix.
Shadowed names appear once. Implicit argument and operand names are left out:
•src — Source•src name returns the definition text of a function or operator, including comments. Introspection has examples.
Errors: VALUE for an undefined name; DOMAIN for an argument that isn’t a name.
Primitives and derived functions give their BPL representation:
•ex — Erase•ex names erases the nearest binding of each name. An outer binding can then become visible. It returns 1 when the name is gone, and 0 for an invalid or protected name. Introspection has examples.
An already absent name also gives 1. Retained function handles stay usable:
]help name shows help in the REPL and in notebooks. A leading ⍝ comment block inside a definition supplies its help text:
]help mean shows the comment:
-source shows the definition:
Glyphs work too. Their help comes from the glyph pages:
? — PredicateIn a dfn, C? ends a predicate. When C is true, the rest of the body runs. When it’s false, the dfn moves on to its next body, after ;.
Statements before a predicate run first. After it, a body can run several statements, or hold more predicates.
C must be a Boolean singleton. A body that ends after its predicate returns no result. If every predicate fails, the call is a DOMAIN error. See Dfns.
In the BPL kernel, Shift-Tab inspects the name or glyph at the cursor. Tab completes user names, system names and backtick glyph names.
Inspection reads definitions without executing them. Arbitrary dfns show the one-/two-argument calling convention without inferring their supported valence.
Python covers help and completion for Python Function objects in IPython.