Monkey
Store
Community
Apps
Contact
Login or Signup

no maps with array values?

Monkey Programming Forums/Monkey Programming/no maps with array values?

Samah(Posted 1+ years ago) 
Local amap:StringMap<Int[]> = New StringMap<Int[]>
(syntax error - expecting identifier)

Local amap:StringMap<IntObject[]> = New StringMap<IntObject[]>
(syntax error - expecting '>')

Local amap:Map<String,Int[]> = New Map<String,Int[]>
(syntax error - expecting identifier)

These don't work because in Monkey an array is not an object.

Class mine<T[]>
(syntax error - expecting '>')

This doesn't work because in Monkey an array is not an object.