Use recursion instead:

1
2
3
4
5
6
7
let rec iter (c, x) =


    if c then print_any x; iter (foo())


iter (foo())

Since foo uses an heap allocated tuple as the return value you don't need to worry about any recursion overhead.

Stephan

By on 10/2/2008 2:31 AM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper