[IronPython] jagged arrays

Michael Foord fuzzyman at voidspace.org.uk
Wed May 27 16:44:12 CEST 2009


Elise Langham (Elanit) wrote:
>
> Thanks for the swift reply (:
>
> Unfortunately  
>
>  
>
> jagArray = Array[Array[int]]( ( Array[int](1,2), Array[int](1,2),
>
> Array[int](1,2,3), Array[int](1,2,3,4) ))
>
>  
>
> Gives another error message: TypeError: Array 1 () takes exactly 1 argument, (2 given)
>  
> Any idea what the problem is ?

My mistake, sorry:

jagArray = Array[Array[int]]( ( Array[int]((1,2)), Array[int]((1,2)), ...)


The argument to the constructor must be a tuple.

Michael

>  
> Elise 
>
>  
>
>  
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>   


-- 
http://www.ironpythoninaction.com/




More information about the Ironpython-users mailing list