On Wed, May 27, 2009 at 7:52 AM, Curt Hagenlocher <[email protected]> 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
[email protected]
_______________________________________________
Users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to