Skip to content

Latest commit

 

History

History
23 lines (19 loc) · 307 Bytes

R.md

File metadata and controls

23 lines (19 loc) · 307 Bytes

R

Declaration, Initialization & Assignment

  • = => <-

Reason: = operator can be forbidden in some contexts

# 👎 non-compliant
a = 1

# 👍 preference
a <- 1
  • Multiple assignments
// 👎 longhand
a <- 1
b <- 1
c <- 1

// 👍 shorthand
a <- b <- c <- 1