Queue Help File


Table of Contents

Queue.Create
Queue.Push
Queue.Pop
Queue.Peek
Queue.GetSize
Queue.isEmpty
Stack.Create
Stack.Push
Stack.Pop
Stack.Peek
Stack.GetSize
Stack.isEmpty

Queue.Create


(string) Queue.Create ()

Description

Creats an empty queue and returns the unique queueId as a string.

Parameters

None


Return

This action returns a (string) value.



Queue.Push


Queue.Push ( 

(table) QueueId,

(string) Value )

Description

Insert a value into a queue.

Parameters

QueueId

(table) The queue to insert the value into.

Value

(string) The value you want to insert into the queue.


Return

This action dose not return any value.



Queue.Pop


(string) Queue.Pop ( 

(table) QueueId )

Description

Removes the bottom element from the queue and returns it.

Parameters

QueueId

(table) The unique queueId.


Return

This action returns a (string) value.



Queue.Peek


(string) Queue.Peek ( 

(table) QueueId )

Description

Returns the bottom element.

Parameters

QueueId

(table) The unique queueId.


Return

This action returns a (string) value.



Queue.GetSize


(integer) Queue.GetSize ( 

(table) QueueId )

Description

Returns the size of the queue.

Parameters

QueueId

(table) The unique queueId.


Return

This action returns a (integer) value.



Queue.isEmpty


(boolean) Queue.isEmpty ( 

(table) QueueId )

Description

Returns true if the queue contains no element, otherwise returns false.

Parameters

QueueId

(table) The unique queueId.


Return

This action returns a (boolean) value.



Stack.Create


(string) Stack.Create ()

Description

Creats an empty stack and returns the unique stackId as a string.

Parameters

None


Return

This action returns a (string) value.



Stack.Push


Stack.Push ( 

(table) StackId,

(string) Value )

Description

Insert a value into a stack.

Parameters

StackId

(table) The stack to insert the value into.

Value

(string) The value you want to insert into the stack.


Return

This action dose not return any value.



Stack.Pop


(string) Stack.Pop ( 

(table) StackId )

Description

Removes the top element from the stack and returns it.

Parameters

StackId

(table) The unique stackId.


Return

This action returns a (string) value.



Stack.Peek


(string) Stack.Peek ( 

(table) StackId )

Description

Returns the top element.

Parameters

StackId

(table) The unique stackId.


Return

This action returns a (string) value.



Stack.GetSize


(integer) Stack.GetSize ( 

(table) StackId )

Description

Returns the size of the stack.

Parameters

StackId

(table) The unique stackId.


Return

This action returns a (integer) value.



Stack.isEmpty


(boolean) Stack.isEmpty ( 

(table) StackId )

Description

Returns true if the stack contains no element, otherwise returns false.

Parameters

StackId

(table) The unique stackId.


Return

This action returns a (boolean) value.



Made with Action Plugin Compiler