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

Have an option to remove NaN from the inputs #11

Open
antononcube opened this issue Sep 1, 2022 · 0 comments
Open

Have an option to remove NaN from the inputs #11

antononcube opened this issue Sep 1, 2022 · 0 comments

Comments

@antononcube
Copy link

It would be nice to have optional removal of NaN's (or Any, or Whatever) specifications for package's core functions (mean, median, etc.).

For example:

my @list = (1, 3, 3, NaN, 33, 2323);
mean(@list):remove-nan

should produce the same result as:

mean(@list.grep({ !$_.isNaN }).List)

Note that this would also make "nicer" the functions summary and hist.

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

No branches or pull requests

1 participant