JanetDocsPlaygroundI'm feeling luckyGitHub sign in

all-bindings



    function
    boot.janet on line 2675, column 1

    (all-bindings &opt env local)

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


2 examplesSign 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
(filter (partial string/has-prefix? "z") (all-bindings))  # => @[zero? zipcoll]
cellularmitosisPlayground