Description text of `difference`
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 1/5
- Thời gian dự kiến
- Dưới một giờ
- Mức phù hợp với người mới
- 55/100
- Loại issue
- Tài liệu
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Đình trệ
- Lĩnh vực
- documentation
Hướng nghiên cứu
Read the difference documentation linked in the issue and compare its wording with the provided example. Clarify that each element in the second array is matched and removed from the first array from left to right; done when the description explains why the result is [1].
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Example:
difference [2, 1, 2] [2, 2, 3] == [1]
https://pursuit.purescript.org/packages/purescript-arrays/7.3.0/docs/Data.Array#v:difference
Delete the first occurrence of each element in the second array from the first array, creating a new array.
I read the description as follows:
- each element in the second array: 2, 2, 3
- first occurrence of each element in the second array: 2, 3
- delete [2,3] from the first array: [2,1,2] ---> deleting [2,3] ---> [1,2]
This would be a clearer description of what this function does:
For each element in the second array, find an occurrence from left to right in the first array and remove it when found.
I think the word "first" should be avoided, because in the example above then second 2 from [2,2,3] is matched against the second 2 from [2,1,2].
- Ngôn ngữ chính
- PureScript
- Star
- 58
- Fork
- 70
- Merge trung bình
- 2 ngày 22 giờ
- Pull request đã merge (30 ngày)
- 1
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của purescript/purescript-arrays
-
generate functionĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 35/100
purescript/purescript-arrays#244 · 2 bình luận ·
-
deleteWith function & friendsĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
purescript/purescript-arrays#242 · 2 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
purescript/purescript-arrays#241 ·
-
`groupBy` has unexpected `l` argument for `a -> a -> Boolean` predicateCó thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 25/100
purescript/purescript-arrays#229 · 3 bình luận ·
-
type: enhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 30/100
purescript/purescript-arrays#215 · 3 bình luận ·
Tất cả issue của purescript/purescript-arrays
Issue tương tự
-
bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 75/100
MetrolistGroup/Metrolist#4554 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
kubescape/node-agent#1099 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
15.0
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
-
[workshop-sim] Improve: Provide a concrete example and activity checks in agentic intro (step 5)Đang mởfeedback simulation workshop
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
githubnext/gh-aw-workshop#5715 ·
Maintainer thường phản hồi trong vòng 1 ngày