Pop Data Member Function

Pops the first item off the top of the stack.

Prototype

int32 Pop()

Examples

Copy Text To Clipboard

import library "app_service_console_util.ssl";
import library "type_color_array_util.ssl";

auto Color r = new Color( 1, 1, 1, 255 );
auto Color g = new Color( 2, 2, 2, 255 );
auto Color b = new Color( 3, 3, 3, 255 );

auto ColorArray data;
data.Add( r );
data.Add( g );
data.Add( b );

LibColorArray.Out( data );
data.Pop();
LibColorArray.Out( data );

Results

COLORARRAY OUTPUT generated by TYPE_COLOR_ARRAY_UTIL.SSL
1,
1,
1,
255,
2,
2,
2,
255,
3,
3,
3,
255
COLORARRAY OUTPUT generated by TYPE_COLOR_ARRAY_UTIL.SSL
1,
1,
1,
255,
2,
2,
2,
255