Extending F# Pipelines with a Tee Function

added by DotNetKicks
2/18/2015 4:02:22 PM

3 Kicks, 136 Views

In functional programming we strive to minimize side-effects but not only are some side-effects desirable, in the largely object-oriented world in which many of us still operate such side-effects are often unavoidable. There are plenty of APIs that rely on side-effects particularly when it comes to initializing types or properties. One example that immediately comes to mind is building up an HttpResponseMessage in Web API 2.


0 comments