Why does fill(:a)[1]
work? It is a zero-dimensional array, so I expect it to index with fill(:a)[]
but apparently [1]
also works.
See this FAQ section of the manual, in particular the 3rd bulett point.
fill(:a)[1,1]
also works, etc.
Why does fill(:a)[1]
work? It is a zero-dimensional array, so I expect it to index with fill(:a)[]
but apparently [1]
also works.
See this FAQ section of the manual, in particular the 3rd bulett point.
fill(:a)[1,1]
also works, etc.