A literal array is created by putting square
brackets around a comma-separated list of elements
eg:
# ["zero" , "un" , "dos" , "tre" ]
a = ['zero' , 'un' , 'dos' , 'tre' ] #
a.length #
a.size # "zero"
a[0] # ["un" , "dos" , "tre" ]
a[1..3]
2022-07-18 21:02:36
A literal array is created by putting square
brackets around a comma-separated list of elements
eg:
# ["zero" , "un" , "dos" , "tre" ]
a = ['zero' , 'un' , 'dos' , 'tre' ] #
a.length #
a.size # "zero"
a[0] # ["un" , "dos" , "tre" ]
a[1..3]