winglang/wing

Deep copying for collection types

Open

#1,450 建立於 2023年2月6日

在 GitHub 查看
 (3 留言) (0 反應) (0 負責人)TypeScript (214 fork)github user discovery
good first issue✨ enhancement🎨 sdk

倉庫指標

Star
 (5,385 star)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

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

貢獻者指南