We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have tested the example of lop.PartitionBy on README.md It keep changed the order
The text was updated successfully, but these errors were encountered:
well i have tested in bash file and it always return the same result
Sorry, something went wrong.
sorry for confusion. I mean the parallel version. belows are my test and the result
func ExamplePartitionByParallel3() { partitions := lop.PartitionBy([]int{-2, -1, 0, 1, 2, 3, 4, 5}, func(x int) string { if x < 0 { return "negative" } else if x%2 == 0 { return "even" } return "odd" }) fmt.Println(partitions) // Output: // [[-2 -1], [0 2 4], [1 3 5]] }
result
=== RUN ExamplePartitionByParallel3 --- FAIL: ExamplePartitionByParallel3 (0.00s) got: [[5 1 3] [2 4 0] [-2 -1]] want: [[-2 -1], [0 2 4], [1 3 5]]
No branches or pull requests
I have tested the example of lop.PartitionBy on README.md
It keep changed the order
The text was updated successfully, but these errors were encountered: