let sum = rec sum xs => match xs with [] => 0 | x :: rest => x + sum restinlet draw = rec draw _ => if flip(0.5) then [] else uniform(0, 1) :: draw 0insum (draw 0)
let sum = rec sum xs => match xs with [] => 0 | x :: rest => x + sum restinlet draw = rec draw _ => if flip(0.5) then [] else uniform(0, 1) :: draw 0insum (draw 0)