How to have two methods calling each other?

‘let rec… and…’ is the syntax you seek.

let rec F() = 
    G()
and G() =
    F()

See also Adventures in F# Co-Recursion.

Leave a Comment