Skip to content

Tracer: Stepper Produces Long, Hard-to-Read Trace for Higher-Order Recursion Function #1805

@CATISNOTSODIUM

Description

@CATISNOTSODIUM

Consider this following snippet:

function h(f, x) {
    function h(g, x) {
        return x <= 1 ? 1 : 3 * g(f, x - 1);
    }
    return x <= 1 ? 1 : 2 * f(h, x - 1);
}
h(h, 5);
Image

The reasonable explanation for this step should be 1 <= 1 ? 1 : 2 * h(h, 1 - 1)) returned.

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueEasy issues to get your feet wet

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions