winglang/wing

Deep copying for collection types

Open

#1.450 geöffnet am 6. Feb. 2023

Auf GitHub ansehen
 (3 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)TypeScript (214 Forks)github user discovery
good first issue✨ enhancement🎨 sdk

Repository-Metriken

Stars
 (5.385 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

Community Note

Please vote by adding a 👍 reaction to the issue to help us prioritize. If you are interested to work on this issue, please leave a comment.

Feature Spec

Add the following methods:

  • Array.deepCopyMut
  • Map.deepCopyMut
  • Set.deepCopyMut
  • MutArray.deepCopy
  • MutMap.deepCopy
  • MutSet.deepCopy

These allow you to recursively copy data to ensure that the results don't share any reference with the original data.

Use Cases

For cases where shallow copying is not enough

Implementation Notes

No response

Component

Compiler

Contributor Guide