Closed jchia closed 6 years ago
I use machines
in my GetEventStore client, I don't have much documentation for that internal stuff but I hope it helps: https://code.coppermine.io/eventsourcing/haskell-ges/blob/dev/1.0/Database/EventStore/Internal/Operation.hs
It seems that the current examples are all about processing some input homogeneously. Can there be an example of a more complicated use case where for example, a file header is read and the content of the header determines how the rest of the file is processed? Is such processing possible with
machines
?For example: The file header is a
Word8
n
followed byn
(Word8, Word8)
pairs(x, y)
. After that the rest of the file is processed byte-by-byte: If some byteb
matches anyx
, the correspondingy
is output. Otherwise,b
is output.