mirror of
https://github.com/polserver/polserver
synced 2026-08-13 08:23:08 -04:00
29 lines
463 B
Text
29 lines
463 B
Text
program test()
|
|
var a := { 1,12,3,32,57 };
|
|
|
|
foreach i in a
|
|
print( i );
|
|
endforeach
|
|
|
|
print( "deleting 3rd element" );
|
|
a.erase( 3 );
|
|
foreach i in a
|
|
print( i );
|
|
endforeach
|
|
print( "size: " + a.size() );
|
|
|
|
print( "deleting 4th element" );
|
|
a.erase( 4 );
|
|
foreach i in a
|
|
print( i );
|
|
endforeach
|
|
print( "size: " + a.size() );
|
|
endprogram
|
|
|
|
/**** Expected Output Begins: *****
|
|
1
|
|
12
|
|
3
|
|
32
|
|
57
|
|
***** Expected Output Ends ****/
|