Skip to content

Mutually recursive function syntax #13

Description

@samueleaton

Doesn't support the mutually recursive function syntax as described here: https://docs.microsoft.com/en-us/dotnet/fsharp/language-reference/functions/recursive-functions-the-rec-keyword

// Mutually recursive functions:
let rec function1-nameparameter-list =
    function1-body

and function2-nameparameter-list =
    function2-body
...

Example:

let rec Even x = 
    if x = 0 then true 
    else Odd (x-1) 
and Odd x = 
    if x = 0 then false 
    else Even (x-1)

Screenshots:

Odd is not recognized as a function:
Screen Shot 2022-06-13 at 4 07 13 PM
Screen Shot 2022-06-13 at 4 07 54 PM
Screen Shot 2022-06-13 at 4 08 03 PM

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions