Re: [Vala] An elegant way to concatenate integers into a string.

2010-06-24 Thread Martin DeMello
On Tue, Jun 15, 2010 at 6:17 AM, Celil celil...@gmail.com wrote: I would like to translate the following python code snippet to vala:        x = [1,2,3]        print ,.join(map(str, x)) So far I have this:        int[] x = {1,2,3};        string[] y = {};        foreach (var e in x) { y

[Vala] An elegant way to concatenate integers into a string.

2010-06-14 Thread Celil
I would like to translate the following python code snippet to vala: x = [1,2,3] print ,.join(map(str, x)) So far I have this: int[] x = {1,2,3}; string[] y = {}; foreach (var e in x) { y += e.to_string(); } stdout.printf(string.joinv(,, y)); Is