+ 1

Why we use colon : in array?

2nd Jul 2016, 5:29 PM
Rafael Valverde
Rafael Valverde - avatar
3 Answers
+ 3
colons are used in dictionaries to separate key and value
6th Jul 2016, 10:07 AM
Arvind Hindyar
Arvind Hindyar - avatar
+ 1
It's also used to assign a parameter value in an method.
8th Aug 2016, 6:20 PM
SouthBay
SouthBay - avatar
+ 1
setting a list of values
5th Oct 2016, 5:38 PM
Ryan Lewis
Ryan Lewis - avatar