JanetDocsPlaygroundI'm feeling luckyGitHub sign in

not



    cfunction
    src/core/math.c on line 308, column 1

    (not x)

    Returns the boolean inverse of x.


See also:bnotcomplement1 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    ]
cellularmitosisPlayground