add micromap and list clear

This commit is contained in:
Daniella 2024-10-13 23:18:36 +02:00
parent c1475cc153
commit ea8d3f5a6f
Signed by: TudbuT
GPG key ID: B3CF345217F202D3

View file

@ -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 {