Scan and fold type enhancements

オープン
#3,076 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
24/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
haskell
領域
backend

調査の方向性

Read the linked issues #1988, #2806, #2822, #1759, and #1514 to understand the pending problems, then inspect the scan, fold, and parser implementations. The issue proposes separate initial, step, and final return types and looping in final states, but does not identify files, tests, or a completion criterion; clarify the design before attempting implementation.

索引モデルが issue の本文から書いたものです。

説明

aspect:folds

We have a few pending problems to solve:

  • #1988
  • #2806
  • #2822
  • #1759
  • #1514

Scan has four operations, fold has the first three of these:

  • initial
  • step
  • final
  • extract

In parsers, we are using separate return types for initial/step/final. We can do the same for scans and folds as well. This will allow us more freedom to loop in Initial and Final states as well. Initial and Final both can have a Continue constructor if required and the driver can call them in a loop. For now we only need looping in Final in case of scans, just like in Parsers. In general, we can even switch between Step and Final, in Step we consume input whereas in Final we just produce without consuming input - this is essentially generalization to the Pipe type.

主要言語
Haskell
スター
926
フォーク
71
平均マージ
6時間 49分
マージ済み PR(30日)
3

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

composewell/streamly のほかの issue

composewell/streamly の issue をすべて見る

似ている issue

Haskell の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。