rscel 1.0.8

Cel interpreter in rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use rscel_macro::dispatch;

pub use methods::dispatch as unique;

#[dispatch]
mod methods {
    use crate::CelValue;

    fn unique(this: Vec<CelValue>) -> Vec<CelValue> {
        let mut out: Vec<CelValue> = Vec::new();
        for item in this {
            if !out.contains(&item) {
                out.push(item);
            }
        }
        out
    }
}