now getRoles and getAddresses return has array as input params and return array of arrays
like this
function getRoles(address[] calldata accounts)external view returns(uint256[][] memory);function getAddresses(uint8[] calldata rolesIndexes) external view returns(uint256[][] memory);
Output will be like this
[ [1,2,3,4], [2,5], [], [7,8,9]]
and
[ [0x567... ,0xab4... ,0xfe5... ], [0x123... ,0x456...], [], [0x123...]]
respectively
now getRoles and getAddresses return has array as input params and return array of arrays like this
function getRoles(address[] calldata accounts)external view returns(uint256[][] memory);
function getAddresses(uint8[] calldata rolesIndexes) external view returns(uint256[][] memory);
Output will be like this [ [1,2,3,4], [2,5], [], [7,8,9]] and [ [0x567... ,0xab4... ,0xfe5... ], [0x123... ,0x456...], [], [0x123...]] respectively