rust-fp-pfds 0.0.4

A Functional Programming Library in Rust, Purely Functional Data Structure
Documentation
1
2
3
4
5
6
7
use rust_fp_categories::Empty;

pub trait Set<A>: Empty {
    fn insert(self, value: A) -> Self;
    fn member(&self, value: A) -> bool;
    fn size(&self) -> usize;
}