Giter Club home page Giter Club logo

callbag.rs's Introduction

callbag.rs ๐Ÿ‘œ

Experimental callbag implementation in Rust ๐Ÿฆ€! Currently attempting to implement some of the core basics (see the list below for progress).

pipe!(
    from_iter(0..10),
    map(|x| x * 3),
    filter(|x| x % 2 == 0),
    map(|x| format!("The number is {}", x)),
    for_each(|x| println!("{}", x))
);

Testing

Run tests with cargo test -- --nocapture to see output.

API

The list below shows what's currently implemented/being attempted.

Source factories

  • from_iter
  • interval

Sink factories

  • for_each

Transformation operators

  • map
  • scan
  • flatten

Filtering operators

  • take
  • take_until
  • take_while
  • take_until_interval
  • skip
  • skip_until
  • skip_while
  • filter

Combination operators

  • merge - variadic with macro merge!
  • concat
  • combine - tough one, need to flatten tuples

Utilities

  • pipe - variadic with macro pipe!

callbag.rs's People

Contributors

f5io avatar teohhanhui avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

callbag.rs's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.