Reimplement "logicUnary" so that complement works on infinite streams of bits