tcrts 0.1.0

Turing complete rust type system
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use super::*;

pub trait Remove<Index> {
    type Output;
}

impl<H, T> Remove<Zero> for Cons<H, T> {
    type Output = T;
}

impl<H, T, Index> Remove<Next<Index>> for Cons<H, T>
where
    Index: Num,
    T: Remove<Index>,
{
    type Output = Cons<H, <T as Remove<Index>>::Output>;
}