Pipe forwards in C#

前端 未结 4 1300
醉酒成梦
醉酒成梦 2020-12-02 14:51

Continuing my investigation of expressing F# ideas in C#, I wanted a pipe forward operator. For anything wrapped in a IEnumerable, we already have it, as you can .NextFunc()

4条回答
  •  感情败类
    2020-12-02 15:19

    While it's not quite the same thing, you might be interested in my Push LINQ framework. Basically where IEnumerable requires the interested party to pull data from a source, Push LINQ lets you push data through a source, and interested parties can subscribe to events corresponding to "another element has just gone past" and "the data has finished".

    Marc Gravell and I have implemented most of the standard LINQ query operators, which means you can write query expressions against data sources and do fun stuff like streaming grouping, multiple aggregations etc.

提交回复
热议问题