foldr1 and foldl1 are too restrictive
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 36/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 領域
- backend
調査の方向性
Start by comparing the proposed and current foldr1 signatures in the issue, then trace their definitions and the corresponding foldl1 implementation in the repository. Check existing tests for these functions and determine whether the proposed terminal-value mapping behavior can be supported without a full traversal; done means the API decision and its behavior are covered by tests. The issue has had no comment activity for over four years.
索引モデルが issue の本文から書いたものです。
説明
Should the signature of foldr1 (and similarly foldl1) be:
foldr1 :: forall f a b. Foldable1 f => (a -> b -> b) -> (a -> b) -> f a -> b
I understand the logic behind the current signature:
foldr1 :: forall f a b. Foldable1 f => (b -> b -> b) -> f b -> b
In that, if I have a mapping from a -> b, then I can pre-map unconditionally, and derive the latter signature. Unfortunately that's not actually what I want to do:
- I only want the mapping to apply to the terminal value.
- I want to otherwise combine with the combining function.
- I don't want to waste an entire traversal to make the signature work.
I feel like there's a missed opportunity with the current signature. To be honest, I almost never want the current signature.
- 主要言語
- PureScript
- スター
- 51
- フォーク
- 57
- 平均マージ
- 3日 14分
- マージ済み PR(30日)
- 1
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
purescript/purescript-foldable-traversable のほかの issue
-
Add `count`オープンstatus: accepted type: enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
purescript/purescript-foldable-traversable#140 · コメント 7 件 ·
-
type: documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
purescript/purescript-foldable-traversable#139 · コメント 1 件 ·
-
`Data.Traversable` re-exports `sum` from `Data.Foldable` but not `product`対応中かも @triallax が 1959 日前に担当しました。 オープンtype: enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 25/100
purescript/purescript-foldable-traversable#137 · コメント 5 件 ·
-
foldrMオープンtype: enhancement
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
purescript/purescript-foldable-traversable#136 · コメント 3 件 ·
-
purs-0.15 type: breaking change
難易度 3/5 1〜2日 初心者へのやさしさ 25/100
purescript/purescript-foldable-traversable#132 · コメント 4 件 ·
purescript/purescript-foldable-traversable の issue をすべて見る
似ている issue
-
ManageSieve proxy: a backend's NO/BYE greeting is skipped as a capability line and reported as EOFオープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
Mend: dependency security vulnerability
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
ManageIQ/manageiq-pods#1476 ·
メンテナーはふだん 1 日以内に返信
-
mcp: typed tool handlers lose wrapped JSON-RPC errors再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
modelcontextprotocol/go-sdk#1529 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
FinanceFlash/unvibecode#818 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100