Get the latest tech news
PFP: A Probabilistic Functional Programming Library for Haskell (2006)
Distributions can represent events, such as the roll of a die or the flip of a coin. For example, or example, the outcome of a die roll can be expressed as follows.
The probabilistic functional programming approach is based on a data type for representing distributions. The PFP library provides a set of function definitions that allow the declarative description and evaluation of probabilistic situations. For more information, please contact: Martin Erwig You can find a Czech translation of the top part of this page here(courtesy of Andrey Fomin).
Or read this on Hacker News