shiftLeft (Function)
Signature: shiftLeft(a: int, n: int) -> int
Description: a << n, total: a count outside 0..63 yields 0, the limit of repeated shifting. Performs no Arith operation.
Parameters
- a (
int): The word to shift - n (
int): The shift count
Returns: int
Example
print(shiftLeft(1, 40)) // 1099511627776
print (shiftLeft (1, 40)) // 1099511627776