\gets

The \gets command in LaTeX is used to produce a leftward arrow, typically used to indicate assignment or direction from right to left in mathematical expressions.

Examples

Assignment of the value y + 1 to x

x \gets y + 1

Indicating that A is assigned the value of B

A \gets B

Assigning the result of a function to a variable

result \gets computeValue()