mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-04 02:39:20 +00:00
feat: add HomogenousTuple
fix: iterator bugs
This commit is contained in:
parent
e220381fa2
commit
86cfe8f81a
5 changed files with 105 additions and 97 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue