[Haskell-cafe] Thompson's Exercise 9.13

Christoph Bauer ich at christoph-bauer.net
Mon Apr 11 10:01:22 EDT 2005


Daniel Fischer <daniel.is.fischer at web.de> writes:

> On second thoughts, I think Maybe [a] is nicer than (Bool, [a]).

Cool, this was my idea, too.

Best regards,
Christop Bauer


-- 
let () = let rec f a w i j = Printf.printf "%.20f\r" a; let a1 = a *. i /. j in
if w then f a1 false (i +. 2.0) j else f a1 true i (j +. 2.0) in f 2.0 false 2.0 1.0


More information about the Haskell-Cafe mailing list