JanetDocsPlaygroundI'm feeling luckyGitHub sign in

all-dynamics



    function
    boot.janet on line 1773, column 1

    (all-dynamics &opt env local)

    Get all dynamic bindings in an environment. Defaults to the current
    fiber's environment. If local is truthy, will not show inherited
    bindings (from prototype tables).


1 exampleSign in to add an example
Loading...
(pp (all-bindings))
# => prints @[% %= * ... yield zero? zipcoll]

(def a "A")
(pp (all-bindings (curenv) true))
# => prints @[_ a] - only local bindings are listed
pepePlayground