Is there an implementation of "proc" notation for arrows in F#? In Haskell, it looks like this:
mean2 :: Fractional a => Circuit a a
mean2 = proc value -> do
t <- total -< value
n <- total -< 1
returnA -< t / n
Note the proc keyword and -< symbol.
Ideally, this would probably use computation expressions somehow, but I'm open to other approaches as well.
I haven't seen any equivalent notation to that in F#. I think the reason is that F# doesn't attempt to be pure and therefore doesn't have the problem that
procand-<is solving.The equivalent F# would just be:
Perhaps I have misunderstood and the
prockeyword offers a lot more functionality than this simple example.