feat: add HomogenousTuple

fix: iterator bugs
This commit is contained in:
Shunsuke Shibayama 2024-04-27 00:28:03 +09:00
parent e220381fa2
commit 86cfe8f81a
5 changed files with 105 additions and 97 deletions

View file

@ -416,6 +416,7 @@ impl Context {
poly(INDEXABLE, vec![ty_tp(Nat), ty_tp(T.clone())]),
&indexable,
);
sequence.register_superclass(poly(COLLECTION, vec![ty_tp(T.clone())]), &collection);
sequence.register_superclass(poly(OUTPUT, vec![ty_tp(T.clone())]), &output);
/* Sequence! */
let mut mut_sequence = Self::builtin_poly_trait(MUTABLE_SEQUENCE, vec![PS::t_nd(TY_T)], 2);