Add `intersections` function
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 45/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Domain
- data
Research direction
Start by locating the existing union, unions, and intersection definitions, along with their tests and documentation. Add the requested intersections function following the provided behavior, then add tests and documentation as noted in the issue.
Written by the indexing model from the issue text.
Description
We have union, unions, and intersection, but no intersections.
I've been using this locally:
intersections :: forall f a. Foldable f => Ord a => f (Set a) -> Set a
intersections sets = case List.fromFoldable sets of
Nil -> Set.empty
(x : xs) -> foldl intersection x xs
PR with tests and docs on the todo list.
- Dominant language
- PureScript
- Stars
- 38
- Forks
- 27
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from purescript/purescript-ordered-collections
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
purescript/purescript-ordered-collections#70 · 2 comments ·
-
Add non-empty `Map` Open
Difficulty 5/5 Over a week Newbie friendliness 20/100
-
purs-0.17 type: breaking change
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
purs-0.16 type: breaking change
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
All issues in purescript/purescript-ordered-collections
Similar issues
-
bug needs triage p2
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
GoogleCloudPlatform/DataflowTemplates#4273 · 1 comment ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
-
correction metadata
Difficulty 1/5 Under an hour Newbie friendliness 72/100
acl-org/acl-anthology#10025 · 1 comment ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100