Open shachaf opened 6 years ago
Oh, this would be a Cochoice
instance. Which it looks like Mealy
doesn't have. Probably worth adding.
Did we finally find a use for Cochoice
?
That is a rather sensible instance even.
Ah, it's the (->)
instance in disguise if you view Mealy a b
, morally as a [a] -> b
.
Retracing some paths in Process Algebra defines a trace/feedback operator for Mealy machines that connects an output back to an input. This is like
ArrowLoop
but with a sum instead of a product. It can be implemented like this:Maybe this would be useful for other machines as well.