In R, ! is really an infix operator `!`, so statements like
Map(`!`,c(T,F,F))
are totally valid. Is there a way to access the first order object underlying not in Python? I have been googling with no success.
Python has the operator
module, which includes a operator.not_()
function:
import operator
map(operator.not_, (True, False, False))
not
itself is one of the boolean operators.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With