add micromap and list clear
This commit is contained in:
parent
c1475cc153
commit
ea8d3f5a6f
1 changed files with 4 additions and 0 deletions
|
@ -309,6 +309,7 @@ construct List {
|
||||||
to-stack { .. | :array:to-stack }
|
to-stack { .. | :array:to-stack }
|
||||||
to-str { str | :array:to-str }
|
to-str { str | :array:to-str }
|
||||||
sub { [any] | :array:sub }
|
sub { [any] | :array:sub }
|
||||||
|
clear { | :=array<0 anew> }
|
||||||
}
|
}
|
||||||
construct _GrowingArray {
|
construct _GrowingArray {
|
||||||
;
|
;
|
||||||
|
@ -423,6 +424,9 @@ construct MicroMap {
|
||||||
foreach { | with callable this ;
|
foreach { | with callable this ;
|
||||||
callable this:pairs:foreach
|
callable this:pairs:foreach
|
||||||
}
|
}
|
||||||
|
clear { | with this ;
|
||||||
|
this:pairs:clear;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
construct Range {
|
construct Range {
|
||||||
|
|
Loading…
Add table
Reference in a new issue