JanetDocsI'm feeling luckyGithub sign in

not



    cfunction

    (not x)
    
    Returns the boolean inverse of x.


1 exampleSign in to add an example
Loading...
# note that 'not' works as an implementation of 'falsey?'
(map not     [ nil   false true  0     1     'a    :a    "a"   []    {}    (fn []) ])
# =>        @[ true  true  false false false false false false false false false   ]

(map truthy? [ nil   false true  0     1     'a    :a    "a"   []    {}    (fn []) ])
# =>        @[ false false true  true  true  true  true  true  true  true  true    ]
cellularmitosis