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

Allow Explorer.PolarsBackend.Series.pow/2 on (series, series) #440

Merged
merged 1 commit into from
Feb 8, 2023

Conversation

nallwhy
Copy link
Contributor

@nallwhy nallwhy commented Nov 29, 2022

This PR resolves #375.

Because of my lack of Rust knowledge, I need feedback for the s_pow/2 code.

Copy link
Member

@philss philss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like the way to go. Looking good!


let s = iter1
.zip(iter2)
.map(|(v1, v2)| v1.unwrap().pow(v2.unwrap()))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible for one of values to be nil/null? Could you add a test for that if so?

let iter2 = s1.u32()?.into_iter();

let s = iter1
.zip(iter2)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happens if the series is different in size?

@philss
Copy link
Member

philss commented Feb 8, 2023

I'm merging this and I should fix the issues that I pointed :)
Thanks!

@philss philss merged commit 8724425 into elixir-explorer:main Feb 8, 2023
liamdiprose pushed a commit to liamdiprose/explorer that referenced this pull request Feb 16, 2023
Support more generalized macro for enum
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.

Allow Explorer.PolarsBackend.Series.pow/2 on (series, series)
2 participants