dev/vala/list/list2.vala

19 lines
325 B
Vala
Raw Normal View History

public static int main (string[] args) {
List<string> list = new List<string> ();
list.append ("1. entry");
list.append ("2. entry");
list.append ("3. entry");
// Output:
// ``1. entry``
// ``2. entry``
// ``3. entry``
list.foreach ((entry) => {
stdout.puts (entry);
stdout.putc ('\n');
});
return 0;
}