-
Notifications
You must be signed in to change notification settings - Fork 79
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
implement split filter #44
Conversation
Can you rebase and try running your test again? :) |
👍 Looks good. Just waiting on automated tests. Pls let me know if you are going to cut a release with all these recent fixes! Thx! |
// The split string argument is also in fact a String | ||
let v: Vec<&str> = string_to_split.split(split_string).collect(); | ||
// Split and construct result | ||
Ok(Array(v.iter().map(|x| Str(String::from(*x))).collect())) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you're calling .collect()
and immediately afterwards .iter()
. I think you can simply remove both these calls.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK I think I got it figured out in 1 line... Watch for new commit.
Looks good, but can you please install rustfmt and run |
Still getting some that aren't mine, but repushed the branch with changes
|
Great 👍 |
One of the tests is commented out pending fix for comma/space issue: #41
Otherwise, I think this works based on the other test case I included.
Should probably update #11 as well.