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

params #86

Open
AIexandrKotov opened this issue Dec 8, 2023 · 0 comments
Open

params #86

AIexandrKotov opened this issue Dec 8, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request with: lang

Comments

@AIexandrKotov
Copy link
Owner

"Last argument is array";
jts = params args => {
    using linq;
    linq.jts(args, " ");
};
jts(1, 2, 3);

min = params (a, rest) => {
    using linq;
    using System.Math;
    return rest.Count == 0 ? a : Math.Min(a, linq.min(rest));
};
min(3, 4, 2);
@AIexandrKotov AIexandrKotov added enhancement New feature or request with: lang labels Dec 8, 2023
@AIexandrKotov AIexandrKotov self-assigned this Dec 8, 2023
AIexandrKotov added a commit that referenced this issue Jun 18, 2024
default values
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request with: lang
Projects
None yet
Development

No branches or pull requests

1 participant