python-plus-plus/examples/numbers.ppp

5 lines
138 B
Plaintext

numbers: int[] = [:int, 0, 1, 2, 3, 4, 5];
numbers = [:int, 2*x for x in numbers];
for number in numbers print(int_to_str(number)+"\n");