Linq in Rust

Codacy Badge Average time to resolve an issue Percentage of issues still open

Linq query in Rust (created by macros).

This project is under development!

Quick Start

This is an example:

```rust use linq::linq;

fn try_linq(){ let x = 1..100;

let mut y: Vec<i32> = x.clone().filter(|p| p <= &5).collect();
y.sort_by_key(|t| -t);
let y: Vec<i32> = y.into_iter().map(|t| t * 2).collect();

let e: Vec<i32> =
    linq!(from p; in x.clone(); where p <= &5; orderby -p; select p * 2).collect();

assert_eq!(e, y);

} ```

If you are familier with LINQ in C#, you will find this easy to use.

Linq Keywords

Query Operators

All italic items mean they are not in roadmap. Happy for your suggestions.

Development

We need more unit-test samples. If you have any ideas, open issues to tell us.

sh $ cargo test