powered by
binary.flip(x)
binary.flip(c(1,1,0,1,0,0,1))
Run the code above in your browser using DataLab