Scan and fold type enhancements

Abierto
#3,076 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
24/100
Tipo de issue
Nueva funcionalidad
Claridad
Necesita aclaración
Estado de actividad
Estancado
Stack tecnológico
haskell
Área
backend

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Haskell
Estrellas
926
Forks
71
Merge medio
6 h 49 min
PR fusionados (30 d)
3

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de composewell/streamly

Todos los issues de composewell/streamly

Issues similares

Más issues de Haskell

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.