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

Rest parameter #47

Merged
merged 4 commits into from
Mar 13, 2022
Merged

Rest parameter #47

merged 4 commits into from
Mar 13, 2022

Conversation

bichanna
Copy link
Owner

import std;

define sum(list+) {
	let sum = 0;
	forEach(list) <- define(i) { sum += i; };
	return sum;
}

sum(3, 1, 4, 2, 5) -> println();

@bichanna bichanna merged commit 8766e5c into master Mar 13, 2022
@bichanna bichanna deleted the rest-parameter branch March 13, 2022 06:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant