dbrattli / Expression

Pragmatic functional programming for Python inspired by F#
https://expression.readthedocs.io
MIT License
424 stars 31 forks source link

README unclear about where 'seq' comes from #50

Closed bionicles closed 2 years ago

bionicles commented 2 years ago

This looks like an impressive project and I'm definitely looking at it for a health IT project, but I have a question, and maybe this can simulate a fresh look at the docs:

My first noobie reaction to this was, "where does 'seq' come from?" and to scroll up and it's never mentioned before here, and not explicitly defined.

ys = xs.pipe(
    seq.map(lambda x: x * 10),
    seq.filter(lambda x: x > 100),
    seq.fold(lambda s, x: s + x, 0)
)

No big deal, but the README is the main entrypoint to the project for noobs like me Thank you for your work and thank you for taking the time to read this