Macaulay2 / Macaulay2/M2

implement a new class "Stream" at top level

Open
#684 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Interpreter
Dominant language
Macaulay2
Stars
435
Forks
297
Avg merge
4d 20h
Merged PRs (30d)
11

Description

Streams might be useful. The methods would include:
```
Stream / Function
Function \ Stream
select(Stream,Function)
take(Stream,ZZ)
apply(Stream,Function)
apply(Stream,Stream,Function)
drop(Stream,ZZ)
prepend(Thing,Stream)
pack(ZZ,Stream)
```
It would be good for streams to be functional, so the main method would take a stream and return its next item and the remaining stream.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files, tests, or entry points; start by finding how top-level classes and functions are defined. Clarify the Stream representation and the listed operations, then verify the functional next-item and remaining-stream behavior with tests.

Written by the indexing model from the issue text.

Assessment

Domain
compilers
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.