The Freya Programming Language

Shift operators

See also

Shift operators works on the binary representation of a numeric type.

Syntax

Freya provides both literal and symbolic shift operators:

OperatorMeaning
shlShift bits to the left: literal syntax.
<<Shift bits to the left: symbolic syntax.
shrShift bits to the right: literal syntax.
>>Shift bits to the right: symbolic syntax.

See also

The Freya Programming Language
Expressions
Logical operations
Unary operators
Type casts
Null coalescing operator
Type declarations