F#: closure in recursion example.