32. Go - Ioat

Iota is used with const to make variables increment by 1.

Example:
const (
a = ioat
b
c
)

"a" will print 0
"b" will print 1
"c" will print 2

Could use iota in expressions:
a := iota * 5

Comments

Popular posts from this blog

2. FreeCodeCamp - Dynamic Programming - Learn to Solve Algorithmic Problems & Coding Challenges

20. Data Analytics - Analyze Data to Answer Questions - Week 1

3. Algorithms - Selection Sort