ludus/janet/base.janet

19 lines
282 B
Plaintext
Raw Normal View History

# A base library for Ludus
# Only loaded in the prelude
(defn- stringify [value]
(def typed? (when (table? value) (:^type value))
(def type (if typed? typed? (type value))
(case type
:nil ""
:number (string value)
:
)
)
(def show {
:name "show"
:fn ()
})