In this case:
x = Win32API.new("user32","GetAsyncKeyState",['i'],'i').call(0x01)
I understood the code as a whole, it returns a value when the left mouse button is clicked. However, I would like to know why the programmer used this symbol [ like that ['i'] as a parameter. I know that the parameter is for the type of import and that the i means integer, but why the use of the [' ']?