Macaulay2 / Macaulay2/M2

delete for MutableList

Open
#1,455 11 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Core
Dominant language
Macaulay2
Stars
435
Forks
297
Avg merge
4d 20h
Merged PRs (30d)
11

Description

Is there a way to manipulate mutable lists without making a new copy? For instance:
```m2
A = new MutableList from {1,2,3};
append(A, 10) -- MutableList{...4...}
peek A -- MutableList{1, 2, 3}
```
For comparison, mutable hash tables can be manipulated in place:
```m2
B = new MutableHashTable from {a => 2}
B#b = 4
peek B
-- MutableHashTable{a => 2}
-- b => 4
remove(B, b)
peek B -- MutableHashTable{a => 2}
```

I assume no copies are being made here, or at least I hope so!

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

Use the MutableList example and the existing MutableHashTable operations as the behavioral comparison. Determine how deletion should mutate the original list without making a copy, and consider the issue complete when the requested delete operation is available and the example’s list reflects the change in place.

Written by the indexing model from the issue text.

Assessment

Domain
tooling
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.