Source benchmarks/exact/gauss_randwalk_finalPos.det
(* FROM: Vakar et al. POPL 2019, https://arxiv.org/pdf/1811.04196, Figure 2 Queries the expected value of the final position.*)let walk =  rec walk times => fun time => fun position =>    match times with    | [] =>        position    | nextTime :: remainingTimes =>        let nextPosition =          gauss(position, nextTime - time)        in        walk remainingTimes nextTime nextPositioninlet times = 1 :: 2 :: 3 :: 4 :: 5 :: 6 :: [] inwalk times 0 0