Skip to content

Stepper: renaming happening without reason, leading to bug #1730

Open
@martin-henz

Description

@martin-henz

https://share.sourceacademy.org/2vmmx

function rev(xs, result) {
    draw_data(xs, result);
    return is_null(xs)
           ? result
           : rev(tail(xs), pair(head(xs), result));
}

function reverse(xs) {
    return rev(xs, null);
}

reverse(list(1, 2, 3, 4));

gives:
Screenshot 2024-12-09 at 10 09 29 PM

with both rev and reverse renamed to reverse_1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions