JuliaCollections / JuliaCollections/DataStructures.jl

SortedDict missing mergewith

Open
#827 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Julia
Stars
745
Forks
261
PR merge metrics
No merged PRs in 30d

Description

SortedDict currently does not implement the Base functions mergewith and mergewith!. So mergewith of two SortedDicts treats them both as AbstractDict and returns a Dict instead of a SortedDict.

Additional missing methods from Base.

  1. map!(f, values(s::SortedDict))
  2. first(a,n) and last(a,n) where a is a sorted container and n is an integer.
  3. filter for SortedDict and SortedMultiDict
  4. 'pairs' for SortedDict and SortedMultiDict

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the SortedDict and SortedMultiDict implementations and comparing their available methods with the listed Julia Base functions. Check how mergewith, map!, first, last, filter, and pairs behave for related sorted containers. Done means the requested methods work for the specified types and preserve the expected sorted-container result types.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
data
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.