Monad to also measure side effects Languages

Monad to also measure side effects

How can I count the number of times bind is applied on a Monad - Example given a state monad, I'd like to count the number of times state changed. How can i best encapsulate this? Should this logic be part of bind operator (with side effect since it increments...
Read More
How to determine a type in F#? Languages

How to determine a type in F#?

In Python, I could see the variable's type by typing:Is there a way to do this in F#?If you're wanting to do this in F# Interactive, you just need to evaluate the variable by typing its name (followed by ;; as with any other expression at the F# Interactive prompt)....
Read More