GET Method

The GET method of VPGL Language get the element at specified position from the target array, associated value with specified key from the target dictiionary.

GET take 2 inputs or 1 input with option and emits 1 output. Input 0 is an array or dictionary which has the target element. Input 1 or option is a position number specifies to get if input 0 is array type. If input 1 is dictionary, input 1 or option is the key to get.

In array case, GET access the array to get the element at specified position. If GET takes invalid position, causes error.

In dictionary case, GET access the dictionary to get the value element associated with sepcified key. If there is no element associated with key, causes error.

Get emits the picked up value to output 0.