Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

arrays in java

Name: Anonymous 2007-01-16 10:27

can someone tell me how to copy a 2 dimensional array to a 1 dimensional one? Ie.
array:
{2, 3, 5}
{4, 7, 9}
should become {2, 3, 5, 4, 7, 9}

Name: Anonymous 2007-01-16 13:37

Hilarious professional enterprise scalable software solution, and the best of all is it only works with ints. I'm sure companies will maximize their profits by applying these best practices on their Web 2.0 projects.

Meanwhile, the Python guy did:

ConvertArray = lambda x: itertools.chain(*x)

and it works with kind of data types (including more arrays, and mixed types).

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List