JanetDocsPlaygroundI'm feeling luckyGitHub sign in

one?



    function
    boot.janet on line 805, column 1

    (one? x)

    Check if x is equal to 1.


2 examplesSign in to add an example
Loading...
(one? :dude) # => false
jgartePlayground
(one? 1)  # => true
(map one? [0 1 2])  # => @[false true false]

(one? (math/next 1 math/inf))  # => false
cellularmitosisPlayground