What is python? Special type of function?

In R ,! really is an infix operator `!`, therefore statements like

Map(`!`,c(T,F,F))

fully valid. Is there a way to access the first object that is not in Python? I did not search for searches.

+4
source share
1 answer

Python has a operatormodule that includes a operator.not_()function :

import operator

map(operator.not_, (True, False, False))

notitself is one of the logical operators .

+6
source

All Articles