view example/listcomp.py @ 54:ad2453a55820

Refactor all Vec<T> -> Vec<String> functions into a single one.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sun, 12 Jun 2016 02:17:23 +0100
parents 719a27f1c1c7
children
line wrap: on
line source

l = [v for v in range(5) if v % 2]