(* From the Compiling with Generating Functions paper:let 𝑋 = sample Poisson(1) inloop 𝑋 sum ForwardPacket() *)let x = poisson(1) inlet loop = rec loop i => fun sum => if i < 1 then sum else let pkt = 0 in loop (i - 1) (sum + pkt)inloop x 0