frunk 0.4.4

Frunk provides developers with a number of functional programming tools like HList, Coproduct, Generic, LabelledGeneric, Validated, Monoid, Semigroup and friends.
Documentation
1
2
3
4
5
6
7
8
9
10
11
// Makes sure that the hlist macros in frunk_core are reexported by frunk
use frunk::{hlist, hlist_pat, HList};

#[test]
fn use_frunk_macros() {
    let h1 = hlist![1i32, 2u32];
    let h2 = hlist!["cool", ...h1];
    let hlist_pat![a, ...bs]: HList![&'static str, i32, ...HList![u32]] = h2;
    assert_eq!(a, "cool");
    assert_eq!(bs, h1);
}