Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] feat(std): Add a Streamlike interface #737

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Etherian
Copy link
Contributor

@Etherian Etherian commented May 25, 2019

Description

Adds a Streamlike (name TBD) interface which generalizes the concept of a collection from which values can be extracted.

Related PRs

Similar concept to the Parsable interface (#687)

Status

In Development

Outstanding design questions:

None currently

To Do

  • Add useful functions
  • Add implementations for standard types
  • Add inline documentation
  • Add documentation in the book?

Prior Art

Future Directions

  • Streamlike + "Finite" -> Foldable (& Traversable)
  • Build generic Streamlike instance for all Indexable? (i.e. [Indexable a] -> Streamlike a)
    • override-able for lists?
  • Maybe a streaming library built like https://github.com/haskell-streaming/streaming, instead of this library's stream-processor-based design?
    • How would Streamlike adapters pass around Streamlikes? Rust-like? Haskell-like? Closure-based?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant