Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
martin-henz opened this issue Dec 9, 2024 · 0 comments
Open

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

martin-henz opened this issue Dec 9, 2024 · 0 comments
Labels
Bug Something isn't working

Comments

@martin-henz
Copy link
Member

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.

@martin-henz martin-henz added the Bug Something isn't working label Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant