JanetDocsI'm feeling luckyGithub sign in

pos?



    function
    boot.janet on line 85, column 1

    (pos? x)
    
    Check if x is greater than 0.


1 exampleSign in to add an example
Loading...
# janet 1.10.1

(pos? 1)      # => true
(pos? 1.618)  # => true

(pos? 0)      # => false
(pos? -1)     # => false

(def pi 3.14159)
(pos? pi)       # => true

(pos? nil)      # => true
(pos? false)    # => true
(pos? "hello")  # => true
(pos? :heyo)    # => true
(pos? [-1])     # => true
(pos? {:a 1})   # => true
(pos? (fn []))  # => true
cellularmitosis