JanetDocsPlaygroundI'm feeling luckyGitHub sign in

dyn



    cfunction
    src/core/corelib.c on line 262, column 1

    (dyn key &opt default)

    Get a dynamic binding. Returns the default value (or nil) if no 
    binding found.


2 examplesSign in to add an example
Loading...
(dyn 'defn)
# => @{:source-map ("boot.janet" 12 1) :value <function defn> :doc "(defn name & more)\n\nDefine a function. Equivalent to (def name (fn name [args] ...))." :macro true}
sogaiuPlayground
(dyn :pretty-format)
# => "%.20Q"
sogaiuPlayground