// The whileLoop operator. // This is boilerplate in terms of "result" and "bind". let rec whileLoop pred body = if pred() then body |> bind (fun _ -> whileLoop pred body) else result ()
// The whileLoop operator. // This is boilerplate in terms of "result" and "bind". let rec whileLoop pred body = if pred() then body |> bind (fun _ -> whileLoop pred body) else result ()