Transducers and cocalculus