JanetDocsPlaygroundI'm feeling luckyGitHub sign in

setdyn



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

    (setdyn key value)

    Set a dynamic binding. Returns value.


1 exampleSign in to add an example
Loading...
(do
  (def before (dyn :expression))
  (setdyn :expression :smile)
  [before (dyn :expression)])
# => '(nil :smile)
sogaiuPlayground