Add `mergeFlipped`
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 35/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 领域
- backend
调研方向
The issue proposes mergeFlipped and the // operator for purescript-record, with examples but no source files or tests named. Start by reading the linked PR #83 and the package’s existing record merge implementation and tests. Done means the proposed operation and operator work for the shown record combinations and are covered by tests.
由索引模型根据 Issue 内容生成。
描述
Add mergeFlipped and an infix operator //
As a user I'm typically more thinking in terms of mergeFlipped than merge, as I want to overwrite a record with some new fields. E.g. in Typescript I can do
const newRecord = { ...otherRecord, more: 23 }
and in dhall // is avaiable as a mergeFlipped operator:
{ home = "/home/bill"
, privateKey = "/home/bill/.ssh/id_ed25519"
, publicKey = "/home/blil/.ssh/id_ed25519.pub"
} // { home = "/home/john" }
So in Purescript I would also like to do the following and I think it makes for a nice addition to purescript-record:
person :: { age :: Int
, firstName :: Maybe String
, professional :: String
}
person =
{ firstName: "John", professional: true } //
{ professional: "Software Engineer", age: 58 } //
{ firstName: Just "Mike" }
I have created a PR to illustrate this #83
- 主要语言
- PureScript
- 星标
- 68
- 派生
- 33
- 平均合并
- 2 天 23 小时
- 30 天内合并 PR
- 1
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
purescript/purescript-record 的其他 Issue
-
Thoughts on replacing Proxy with VTA?可能已有人在做 @pete-murphy 于 1043 天前认领。 未关闭
难度 5/5 一周以上 新手友好度 10/100
purescript/purescript-record#85 · 3 条评论 · 2 个 reaction ·
-
type: documentation
难度 5/5 一周以上 新手友好度 25/100
purescript/purescript-record#49 · 7 条评论 ·
-
status: needs more info
难度 4/5 3-5 天 新手友好度 25/100
purescript/purescript-record#41 · 2 条评论 · 1 个 reaction ·
-
pick function未关闭purs-0.15 type: breaking change
难度 4/5 3-5 天 新手友好度 20/100
purescript/purescript-record#5 · 6 条评论 ·
查看 purescript/purescript-record 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 70/100
-
good first issue help wanted
难度 2/5 1-3 小时 新手友好度 80/100
维护者通常 1 天内回复
-
bug good first issue
难度 2/5 1-3 小时 新手友好度 85/100
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
milind-soni/OpenMausBot#5829 ·
维护者通常 1 天内回复