JanetDocsI'm feeling luckyGitHub sign in

varglobal



    function
    boot.janet on line 79, column 1

    (varglobal name init)

    Dynamically create a global var.


1 exampleSign in to add an example
Loading...
(varglobal "smile" false)
# => nil

smile
# => false

(set smile true)
# => smile

smile
# => true

(dyn 'smile)
# => @{:ref @[true]}
sogaiu