R assignment (left-assignment, right-assignment)
- Both = and <- can be used for left-assignment
- -> Can be used for right-assignment
x = 1
y <- 2
3 -> z
print(x) # 1
print(y) # 2
print(z) # 3
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
x = 1
y <- 2
3 -> z
print(x) # 1
print(y) # 2
print(z) # 3