[IronPython] jagged arrays
Curt Hagenlocher
curt at hagenlocher.org
Wed May 27 16:54:39 CEST 2009
On Wed, May 27, 2009 at 7:52 AM, Curt Hagenlocher <curt at hagenlocher.org> wrote:
>
> def make_jagged(T, v):
> return Array[Array[T]]([Array[T](x) for x in v])
Or maybe this:
def make_jagged(T):
def inner(*v):
return Array[Array[T]]([Array[T](x) for x in v])
return inner
make_jagged(int)((1, 2), (1, ), (1, 2, 3))
--
Curt Hagenlocher
curt at hagenlocher.org
More information about the Ironpython-users
mailing list