JanetDocsPlaygroundI'm feeling luckyGitHub sign in

default



    macro
    boot.janet on line 162, column 1

    (default sym val)

    Define a default value for an optional argument. Expands to (def 
    sym (if (= nil sym) val sym))


0 examplesSign in to add an example
Loading...