[racket] Probability macro/HOF (for use in Typed Racket)

From: Asumu Takikawa (asumu at ccs.neu.edu)
Date: Fri Mar 21 21:12:57 EDT 2014

On 2014-03-21 18:00:46 -0700, Ben Dean wrote:
>    Frequently throughout a program I am working on, I would like to specify a
>    probabalistic choice between two (for the sake of simplicity) procedures
>    that might be applied at runtime.

I posted an answer here:
  http://stackoverflow.com/a/22572116/898073

Let me know if that makes sense/helps.

Cheers,
Asumu

Posted on the users mailing list.